Page 1 of 1

The regular expression contains an unspecified Perl extension error.

Posted: Mon May 06, 2019 5:07 pm
by Debugger
The regular expression contains an unspecified Perl extension error. Any idea?
(?i)(?u)[\x{0419}\x{0041}]


and incorrect pattern
[\x{0419}\x{0041}]\u
[\x{0419}\x{0041}]\l

Re: The regular expression contains an unspecified Perl extension error.

Posted: Fri May 08, 2020 11:07 pm
by RegexNinja
Hi.. Unfortunately (?u) is not a valid Perl extension for either PCRE or PCRE2.
But the format: \x{###} suffices for matching unicodes (leading 0's can be omitted).

Same thing with \u for uppers-only and \l for lowers-only (neither PCRE/PCRE2).
But you can always use (?-i) to terminate (?i)'s case-insensitivity.
Cheers!