Community
    • Login

    help replacing places

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.3k Views
    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 LeciE
      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 FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        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
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors