Community
    • Login

    Help to remove numbers with notepad

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 799 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.
    • adelinefiuA
      adelinefiu
      last edited by

      Hello, I’m a novice here, I’m trying to eliminate the numbers before and after |, I need your help

      30001sdv@|abcd34|8999
      00020dfg|abcdefgh56|0000
      2030sss|acgefty78|45
      00040xcv|jhjhjdsadj245|33
      00050|sadjjjah3|00001
      00500|blessing22|45

      The result that I need is this

      sdv@|abcd34|
      dfg|abcdefgh56|
      sss|acgefty78|
      xcv|jhjhjdsadj245|
      |sadjjjah3|
      |blessing22|

      please, thanks you

      1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones
        last edited by

        You said “eliminate numbers before and after |”, but your example showed eliminating the numbers at the beginning or end of the line (or maybe it’s eliminating numbers at the beginning of the line, or after the final |)

        Assuming that your example, not your words, is what you want:

        • Find = ^\d+(.*\|)\d+$
        • Replace = $1
        • Search Mode = Regular Expression
        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors