Help to remove numbers with notepad



  • 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



  • 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

Log in to reply