Get word

Email : ankitahlawat213@gmail.com

want email id only trim Email :

If you need email id means ankitahlawat213@gmail.com
Use regex: \w+@\w+.\w{3}

Or use Substring

Regards
Chethan P

Variable1 = Email : “This@gamil.com

EmailId=“Email : ankitahlawat213@gmail.com "
First=EmailId.Substring(0,EmailId.lastIndexOf(”@"))
First=First.Substring(First.lastIndexOf(" “))
Second=EmailId.Substring(EmailId.LastIndexOf(”@"))
Second=Second.Substring(0,Second.LastIndexOf(" "))

Op=First+Second

You can use like this also use a substring and index if you not comfortable with Regex
But Regex is good my suggestion use regex

If you get the solution please mark it as a solution and close this topic


Regards
Chethan P

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