Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
L2 = {w ∈ Σ ∗ = {0, 1} ∗ | |w|1 = 2k + 1, k ∈ N}
Open Workspace
PCRE2 (PHP)
Match
Created 2023-10-23 02:01
1
Regular Expression
/
(
0
*
10
*
)(
(
11
)*
|
0
*
)(
(
0
*
10
*
10
*
)*
|
111
)
0
*
/
g
Description
L2 = {w ∈ Σ ∗ = {0, 1} ∗ | |w|1 = 2k + 1, k ∈ N}
Submitted by
Alan Dantas