I'm trying to parse the email address out of the %MailSender% variable. An example value for %MailSender% is:
The regular expression I'm using is:
I've tested the expression using BBEdit (a regex-capable app) and also using https://regex101.com. Both return the expected value of email@example.com. But when I try this in KM it returns the error: Macro Cancelled Search Regular Expression failed to match
I'm using the action, "Search Variable "MailSender" Using Regular Expression..." ... Using Regular Expression (having typed MailSender in (without the % marks) as the variable name).
While trying to debug the problem, I found that if instead of using the variable I set it to search a hard-coded text string. i.e.:
"BevMo <firstname.lastname@example.org>" Using Regular Expression... it works!
So it seems the regex is being handled correctly, but I'm not providing the varible contents properly. Can anybody tell me what I'm doing wrong?