This is a public Forum  publicRSS

Topic

    Marcos Sanz
    How to create regex for mail header.Answered
    Topic posted March 13, 2018 by Marcos SanzJourneyer 
    102 Views, 7 Comments
    Title:
    How to create regex for mail header.
    Content:

    Hi. I've never worked with regular expressions and I'm having problems creating one to use in business rules. my business rule would be incident. email header matches the regular expression.
    I'm trying everything but I can't get it to match.

    I'd have to agree to something like that: 
    "From: example text <exampleemail@invalid.com"

    and at the same time with

    "From: example text with more words <exampleemail@invalid.com".

    I appreciate all the help. Regards

    Version:
    OSC : 17D

    Best Answer

    Anuj Behl

    How about this?

    ^(From:).*(<emailinvalid@invalid.com>)$

    Answer