Forum Moderators: phranque
$pattern = '(?:ab+c+)'; /
[a-z]
[
*
?
+
]+
(?!
\)
[
|
\Z
]
)
/xg UNLESS it's followed by ) followed by | or \Z (the end of the string)Is \Z construed as a character like any other? In the usual construction involving $ (or, mutatis mutandis, ^ or \b), the
Writing a RegEx to locate a RegEx is decidedly meta ;)