Community

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

    Someone help me

    Help wanted · · · – – – · · ·
    2
    2
    83
    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.
    • Wahlla Magla
      Wahlla Magla last edited by

      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
      • guy038
        guy038 last edited by guy038

        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
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors