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
/
^(.*;)?([0-9]+(#[0-9]+){2,}).*|^([^;\n]+).*
/
gm
Input 1
1
New
2#9#;2#37#65 -> 2#37#65 2#9#;2#37#65;2#37# -> 2#37#65 2#9#;2#37#65;2#37#;2#37#56 -> 2#37#65 or 2#37#56 2#37#65;2#99 -> 2#37#65 3#9#;3#37#65;3#37#36;2#37#56 -> 3#37#65 or 3#37#36 or 2#37#56 2#37#;2#99# -> 2#37 or 2#99# ( in this case any value)
Substitution
$2$4
2#9#;2#37#65 -> 2#37#65 2#9#;2#37#65;2#37# -> 2#37#65 2#9#;2#37#65;2#37#;2#37#56 -> 2#37#65 or 2#37#56 2#37#65;2#99 -> 2#37#65 3#9#;3#37#65;3#37#36;2#37#56 -> 3#37#65 or 3#37#36 or 2#37#56 2#37#;2#99# -> 2#37 or 2#99# ( in this case any value)