• Login
Community
  • Login

Help to remove numbers with notepad

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 798 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.
  • A
    adelinefiu
    last edited by Nov 6, 2018, 3:13 AM

    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
    • P
      PeterJones
      last edited by Nov 6, 2018, 1:54 PM

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