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
/
(BE)[1-9]{2}(-?)[0-9]{4}(-?)[0-9]{4}(-?)[0-9]{4}
/
gm
Input 1
BE15-7878-0144-5741 BE15001470142457 BE1235-16152-216510-152615620
Extraction
BE15-7878-0144-5741 BE15001470142457 BE1235-16152-216510-152615620