Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
([^\\}<]{3}|][^]]|^).?[$PG]$
/
gm
Input 1
1
New
The next answer has to match the following strings: PPCG ^P ^[P^]P [^?][PG]$ (?<!\\..)(?!]).$ ^[\w^]*$|!|]P|G]\$$ !|[^?]P(CG|G..)?$ [^])]\$|^\^?P|P.\].$ ([.$?]|G\])\$$|^\^?P|\]P$ ([P.$?]\$|[]^]P|G\]\$|CG)$ !|((G.|P|\.)\$|[^?]P|CG)$ ^[(!P]|G..$|]..\||[^?]P$ ^.{3,23}[.-~]..\$$|[^P?][PG]$ And fail on these strings: [PPCG] ^[P\^] [^\]]$ ^\^?P [^?][PG]$|<|PG ^[^\\|]*(\\\\)+[^\\|]*[^\]]$ ^(.{,4}|.{9}|.{16,19}|.{5}P)$ ^[^?]*[PG]$|[?$].*\$$ ^[^[]P|]P|(G]|[.])\$$ \..$|!|\|G|^[\^P]P|P\^|G.\$$ ...\^.P|^!|G]\$$|w|<!|^\^?P ([^\\}<]{3}|][^]]|^).?[$PG]$
Extraction