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
@"
#([1-3]\d{4}(?: E\d{6})?)$
"
gm
Input 1
1
New
successful my registration id is #12345 E112233 Successful my data is #22331 E001122 failing 12345