Community

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

    help replacing places

    Help wanted · · · – – – · · ·
    2
    2
    1101
    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.
    • Eris Leci
      Eris Leci last edited by

      Can somebody tell me how can I do this…
      Replace from for example
      123456:name@hotmail.com to
      name@hotmail.com:123456
      I am talking for long text not just 3-4 lines
      Thanks

      Claudia Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Eris Leci last edited by

        @Eris-Leci

        from your given example you can use regular expression, build 3 matching groups and rearrange it like this

        find what:(\d+)(:)(.+@.+\.com)
        
        replace with:$3$2$1
        

        Means it is search for any number of digits (\d+), at least one followed by a colon (:) followed
        by any char followed by @ followed by any char followed by .com

        If you want to learn more about regular expression see this link and the last post by guy038
        https://notepad-plus-plus.org/community/topic/14208/is-regex-condition-possible-in-replace-string/5

        Cheers
        Claudia

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