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
/
^([a-zA-Z]{2})?\d{6}(F|L|SDL?)?$
/
gm
Input 1
1
New
CA123456SDL CA123456 123456 C123456SDL 123456F 123456L 123456SD 123456SDL 123456SDL
Extraction
CA123456SDL CA123456 123456 C123456SDL 123456F 123456L 123456SD 123456SDL 123456SDL