Extract data with regex



  • from:arthurlurryadmin@yyy.comreply-to:admin@yyy.comto:RonaldoDemelopyyyy@mmail.comytut7t6ioy9mu795-date:Mar30,2022,8:28PMsubject:HowSchoolBoysUsedToWriteLettersToGirlsInThe80sAnd90s..Romance..2vakj0t1..security:Standardencryption(TLS)Learnmore

    content not dislaying perfectly on forum here is the link to the content https://regex101.com/r/qCbTkf/1

    from the above content can anyone help me with two regex match to extract yyyy@mmail.com and ytut7t6ioy9mu795. I tried some guys in fever but he failed to get the right regex expression



  • At first show your content in a code-tag, like this:

    from:arthurlurry<a href="mailto:admin@yyy.com" rel="nofollow">admin@yyy.com</a>reply-to:admin@yyy.comto:RonaldoDemelop<a href="mailto:yyyy@mmail.com" rel="nofollow">yyyy@mmail.com</a>ytut7t6ioy9mu795-date:Mar30,2022,8:28PMsubject:HowSchoolBoysUsedToWriteLettersToGirlsInThe80sAnd90s..Romance..2vakj0t1..security:Standardencryption(TLS)Learnmore
    


  • @Vituskosoy said in Extract data with regex:

    At first show your content in a code-tag, like this:

    from:arthurlurry<a href="mailto:admin@yyy.com" rel="nofollow">admin@yyy.com</a>reply-to:admin@yyy.comto:RonaldoDemelop<a href="mailto:yyyy@mmail.com" rel="nofollow">yyyy@mmail.com</a>ytut7t6ioy9mu795-date:Mar30,2022,8:28PMsubject:HowSchoolBoysUsedToWriteLettersToGirlsInThe80sAnd90s..Romance..2vakj0t1..security:Standardencryption(TLS)Learnmore
    

    Thanks will do that next time. The fever guy later came up with a perfect regex match and everything work 100% now.


Log in to reply