Hi there, @wordpresschef… maybe I don’t understand your post, but if the string always looks like the example you are showing, you can use the :split by operator, with the character to split by being a comma. Then, add the :first item operator to the end of the expression (in other words, get the first item in the split), and you should be good to go.
Hi Mike,
thank you for your quick answer, the point is that sometimes the order of those email address is not the same. It could happen that is like this:
Sorry, I am probably being dense here, but if the email address is always contact@wordpresschef.it, why do you need to extract it from a string and what do you need to do with it after you extract it?
Edit: I don’t pretend to be an expert with regex, but if you need to extract an email address that has @wordpresschef.it in it, the :extract with Regex operator and the following expression should do the trick: [a-zA-Z]+@wordpresschef.it$
(Yes, that expression will only extract an email address with letters in the alias, but it’s a start, and you can take it from there.)
to find that email address that IS NOT the one that starts with “reply+” …
because “contact@wordpresschef.it” it’s only an example, as it can change every time, while I always will have another email address that starts with “reply+” , I need to exclude that one and extract the other one.
That’s odd because it works in both cases for me. In the second case, it does include a space before the email address, but you can fix that by adding the :trimmed operator (or :each item:trimmed) after the :filtered operator in the expression.
@wordpresschef I hope you managed to find the right regex/flow. If you didn’t I wanted to let you know that you can use my AI parser plugin to extract data without needing to use RegEx at all
You can use the AI extract feature, where “Text to parse” will be your list of email addresses, and what would you like the parser to extract can simply be" 'e-mail addresses that don’t start with “reply+” ’
Yes, @wordpresschef… you can use the completely-free, also-doesn’t-use-regex-at-all suggestion I gave you (which I am 100% sure works) or you can pay $10/month for a plugin. Your call, of course.