I need to extract the name from the email address using regex

Hello, Family
I need to extract the name from Cherry22@gmail.com using regex
hear am using this code
image
I need the only cherry not number how to extract

or you can suggest a split method also

mailidString.split("@"C)

but this code also give cherry123

Can anyone suggest how to extract only the cherry

Thanks
Chethan P

1 Like

Hello @copy_writes ,

you can try this ^[A-Za-z]+

image

OR

You can try this too [A-Za-z]+(?=\d{0,}@)

image

Cheers
@copy_writes

1 Like

can i get know how to use in split mnz using split how to extract this

1 Like

You need to extract using Split?

1 Like

yes I need to extract using split

1 Like

Try this

System.Text.RegularExpressions.Regex.Split(“Cheery123@gmail.com”,"\d{0,}@")

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.