Trying to extract email addresses from raw HTML. There are many email addresses in the HTML and I need to be able to pull all of them out and store as variables. I have tried using the regex editor at regex101 and I can only seem to get it to grab all of the html in between the first email and last email. I need only the email addresses please. Any help is greatly appreciated!
make it ungreedy by
(?<=email=")(.*?)(?=")
kindly note:
="
and *?
1 Like
Hi ppr - Thank you! You’re awesome!
@chrystine.h
Perfect
kindly note following risk when email is spanning over linebreaks, due the dot will stop on \n
we can grab
and afterwards repair by
by
Regex.Replace(yourBrokenEmailString, "\s+", "")
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.