1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Join our Telegram chat: https://t.me/a_parser_en
    Dismiss Notice

Regex for Mail Extractor

Discussion in 'A-Parser Support Forum' started by Hassmaske, Feb 24, 2022.

  1. Hassmaske

    Hassmaske A-Parser Pro License
    A-Parser Pro

    Joined:
    May 13, 2020
    Messages:
    6
    Likes Received:
    0
    Hello @ all
    the support in telegram cant help me about this problem.
    I have a a Tast, which give me the output like these:
    I want extract the Mails from "https://www.conrad.de/" and from "https://www.conrad.de/de/ueber-conrad/rechtliches/impressum.html".
    So i try to make it with the regex option. But there are no way to set it to "g" only to "i" "s" and "is".
    It look like these:
    upload_2022-2-24_5-14-5.png

    Use this regex:
    How can i solfe this problem?

    Thanks for the help
     
  2. Support Ilia

    Support Ilia Moderator
    Staff Member A-Parser Enterprise

    Joined:
    Apr 6, 2020
    Messages:
    363
    Likes Received:
    62
    1. Update A-Parser to 1.2.1457
    2. Use regex:
    Code:
    ([(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b[-a-zA-Z0-9@:%_\+.~#?&//=]*),([(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b[-a-zA-Z0-9@:%_\+.~#?&//=]*)
    3. Use 2 HTML::EmailExtractor
    4. Override Query format like on screenshot:
    [​IMG]
     
    Hassmaske likes this.
  3. Hassmaske

    Hassmaske A-Parser Pro License
    A-Parser Pro

    Joined:
    May 13, 2020
    Messages:
    6
    Likes Received:
    0
    Ok this works
    upload_2022-2-26_6-19-33.png

    I try it with the number like this line:
    This works for me
    But when i try it with this line:
    But this dosent work for me.
    I try it with a new Regex part "query3" and change it by the "Query format" to "$query.query3" but these dosent work for me
    upload_2022-2-26_6-23-49.png

    Dose this work too with the regex or is this not posible how i try it?
     

Share This Page