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
/
(?<check_all> [ ]+ \[(?<check_content>X|[[:blank:]\h])\] [ ]+ (?=\S+) )
/
gxi
Unit Tests
-
[
]
foo
-
[x]
bar
→ capture group 0 starts with
empty string
-
[x]
foo
-
[
]
bar
-
[x]
baz
-
[
]
…
→ capture group 0 starts with
empty string