• Login
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.
  • E
    Eris Leci
    last edited by Jul 30, 2017, 8:41 AM

    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

    C 1 Reply Last reply Jul 30, 2017, 11:50 AM Reply Quote 0
    • C
      Claudia Frank @Eris Leci
      last edited by Jul 30, 2017, 11:50 AM

      @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
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors