• Login
Community
  • Login

Someone help me

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 224 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.
  • W
    Wahlla Magla
    last edited by Nov 22, 2021, 2:53 AM

    Hi. Can someone help me with this. Say for example I have this text:
    Clarck/22yaloo
    Black/36narkos
    Galim/balisok
    How do I remove two characters after this symbol “/” in each line ?

    1 Reply Last reply Reply Quote 0
    • G
      guy038
      last edited by guy038 Nov 22, 2021, 9:26 AM Nov 22, 2021, 9:25 AM

      Hello, @whalla-magla and All,

      If we assume that there is only 1 slash per line, then use the Regular expression search mode with :

      • SEARCH (?-s)/..

      • REPLACE /

      then your INPUT example :

      Clarck/22yaloo
      Black/36narkos
      Galim/balisok
      

      becomes :

      Clarck/yaloo
      Black/narkos
      Galim/lisok
      

      If you meant : delete the two digits after the / character, then use the following regex S/R :

      • SEARCH /\d\d

      • REPLACE /

      This time, your INPUT example :

      Clarck/22yaloo
      Black/36narkos
      Galim/balisok
      

      becomes :

      Clarck/yaloo
      Black/narkos
      Galim/balisok
      

      Best Regards

      guy038

      1 Reply Last reply Reply Quote 3
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors