1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email scraper Regex?

Discussion in 'Visual Basic .NET' started by zacatictac, Mar 24, 2011.

Thread Status:
Not open for further replies.
  1. zacatictac

    zacatictac Jr. VIP Jr. VIP

    Joined:
    May 2, 2010
    Messages:
    651
    Likes Received:
    765
    Occupation:
    SEO
    Location:
    Metaverse
    Any of you VB programmers out there know of a decent regex to scrape emails? I wrote a decent one but it has its faults.
     
  2. captchaman

    captchaman Junior Member

    Joined:
    Sep 16, 2010
    Messages:
    190
    Likes Received:
    842
    Occupation:
    Software Programmer
    Location:
    USA
    \b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
     
    • Thanks Thanks x 1
  3. lwelch45

    lwelch45 Junior Member

    Joined:
    Mar 24, 2010
    Messages:
    135
    Likes Received:
    38
    Home Page:
    yep thats good
     
    • Thanks Thanks x 1
  4. zacatictac

    zacatictac Jr. VIP Jr. VIP

    Joined:
    May 2, 2010
    Messages:
    651
    Likes Received:
    765
    Occupation:
    SEO
    Location:
    Metaverse
    Thanks man I will give that a shot. I appreciate it.
     
  5. fastlinks

    fastlinks Power Member

    Joined:
    Feb 4, 2015
    Messages:
    568
    Likes Received:
    68
    ([a-z0-9][-a-z0-9_\+\.]*[a-z0-9])@([a-z0-9][-a-z0-9\.]*[a-z0-9]\.(com|net))

    (com|net) add the domain extension you need inside
     
  6. Zwielicht

    Zwielicht Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    4,705
    Likes Received:
    8,367
    Gender:
    Male
    Occupation:
    Liquidator
    Location:
    Riverside, California
    [​IMG]
     
Thread Status:
Not open for further replies.