How to get country name s

hi i have a email address like myname+COUNTRYName+timestamp

how to get the country name out

mahesh+UnitedStated19-09-24-11-19-20@gmail.com

i wanted united states

Hi @mint

Try this

(?<=\+)[A-Za-z]+(?=\d+)

System.Text.RegularExpressions.Regex.Match(Input,"(?<=\+)[A-Za-z]+(?=\d+)").Value`Preformatted text`

Regards,

1 Like

countryName = email.Split("+"c)(1).ToString()

Try this

It will split the string based on plies character and then return the first value of splitter script and u need pass your subject instead of email @mint

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