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