Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
"
\b\d+(?:\|(?!\d+(?:$|\|))[^|\r\n]+)*
"
gm
Input 1
1
New
123|abc|123abc 123|ab12c|abc|456|abc|def 123|1abc|1abc1|456|abc|wer 123|abc|def|456|ghi|jkl|789|mno|pqr