PCRE2's behaviour matches Perl currently, and Python's regex module (the standard re module doesn't have \P{...}).
However, JavaScript behaviour changed recently (when they added the new 'v' flag; the old 'u' flag's behaviour is unchanged), so this case is worth additional testing.
PCRE2's behaviour matches Perl currently, and Python's regex module (the standard re module doesn't have \P{...}).
However, JavaScript behaviour changed recently (when they added the new 'v' flag; the old 'u' flag's behaviour is unchanged), so this case is worth additional testing.
Raised in issue #497.