Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Using Regex to replace email address

    Help wanted · · · – – – · · ·
    2
    2
    1366
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dave Massa
      Dave Massa last edited by

      I need to Replace 5k various email addresses from user1@email.com to (user1@email.com)

      Find What: \b[A-Z0-9._%±]+@[A-Z0-9.-]+.[A-Z]{2,}\b

      but I can’t figure out the “Replace with” so that the email has the parentheses

      Ekopalypse 1 Reply Last reply Reply Quote 2
      • Ekopalypse
        Ekopalypse @Dave Massa last edited by

        @Dave-Massa

        replace with \($0\)

        1 Reply Last reply Reply Quote 4
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors