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
/
(N(.*?)S([UID])\|(.*?))(?:B|\|.?)?$
/
gm
Input 1
New
N15319542045C13_1_3/61488007C13-130083_1_3/61488007C13-130083-1_1_3/P1197443641_1_3SD|1 NP1196939393_1_3SU|OD=2/7;|B NP1196930222_1_3SU|OD=4/11;| N15319384625C13_1_3/61445794C13-130077_1_3SD||