Extract mail address from string using string mehod

How to extract mail address from given string using string method

Hey!

Try this below:

System.Text.RegularExpressions.Regex.Match(InputStringVariable,"((?>[a-zA-Z\d!#$%&'*+\-\/=?^_`{|}~]+\x20*|""((?=[\x01-\x7f])[^""\\]|\\[\x01-\x7f])*""\x20*)*(?<angle><))?((?!\.)(?>\.?[a-zA-Z\d!#$%&'*+\-\/=?^_`{|}~]+)+|""((?=[\x01-\x7f])[^""\\]|\\[\x01-\x7f])*"")@(((?!-)[a-zA-Z\d\-]+(?<!-)\.)+[a-zA-Z]{2,}|\[(((?(?<!\[)\.)(25[0-5]|2[0-4]\d|[01]?\d?\d)){4}|[a-zA-Z\d\-]*[a-zA-Z\d]:((?=[\x01-\x7f])[^\\\[\]]|\\[\x01-\x7f])+)\])(?(angle)>)").ToString

Regards,
NaNi

Here is the email id namratashedge@gmail.com" - Extract the email from the string want to get this using string method

Try this:

System.Text.RegularExpressions.Regex.Match(InputStringVariable,"(?<=email id\s).*(?<=com)").ToString

Reference:

Regards,
NaNi

Hi Please find the below xaml file. It will help you to extract the email id from the input string.Return the output as string
Regex.xaml (4.8 KB)

Thanks and regards
Sreejith

thanks you

“Account Number889537222XXXXX-RateBillsyear2022-Amount2000” - Extract Account Number, Year and Amount from the given string
73834.98, 575345.00 - convert to double and get the round figure and print it
7689124345657, Nam54637ata, —678+++ - Print the number by taking first 3 and last 3 characters

can you please help me to resolve this questions please its kind request

@Sandhya_Gajare Sure. If the above solution helps you then can you please mark it as solution

Hi @Sandhya_Gajare Please find the below xaml code.
It will help you to extract the Account number, Year, Amount from the Input String.
Main.xaml (6.4 KB)
Thanks and Regards
Sreejith.

Hi
7689124345657, Nam54637ata, —678+++ - Print the number by taking first 3 and last 3 charactersSS
can you help me with this question.

Hey!

Could you please create new thread for this…

Regards,
NaNi

Hey @Sandhya_Gajare please create this as a new topic in forum.

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