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
/
(\?|\&)L=\d
/
Unit Tests
&L=1
→ regex does match
&XXXL=1
→ regex does not match
?L=0
→ regex does match
?XXL=small
→ regex does not match
?L=lang
→ regex does not match
&id=1234&L=42&foo=bar
→ regex does match
L=2342
→ regex does not match