Content Grabber 2 How to collect all emails inside pargraph with RegEx?

194 views Asked by At

I'm using Content Grabber 2 and I have paragraph contains many emails in many parts. I'm using a this software to match case inside any paragraph, HTML or what ever to collect the emails with clean format.

I'm using this syntax:

\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b

To find all email match. But the issue its always stop after the first match.

As per my knowledge, I need to make it global to keep working after the first match and its already work on this link: https://regex101.com/r/Q0wZLJ/1

But not inside my software (Content Grabber 2).

Is it possible to explain what I need to do to make my syntax global in the way I wrote above?

Thank you,

1

There are 1 answers

1
Wiktor Stribiżew On BEST ANSWER

There is no issue with the pattern (just mind it won't detect all possible emails, the most lenient pattern for an email is \S+@\S+\.\S+). You just need to add return all to your command.

See the Content Grabber documentation:

return all   Returns all matches or the specified group within all matches.