mIRC Homepage
After banging my head against the keyboard I've discovered some inconistant behavior with \x:
Code:
\xNN - works as expected
\x{NNNN} - works as expected
\xNNNN - doesn't work


further more, after a certain codepoint (I'm not sure which) \x{NNNN} stops matching:
Code:
echo -a $regex( $chr($base(0600, 16, 10)), \x{0600})


Maybe related, maybe not, \u(does the same as \x) doesn't work at all
Posted By: Wims Re: Regex \x sequencing not working properly - 03/08/15 10:13 PM
Originally Posted By: pcre.txt
\xhh character with hex code hh
\x{hhh..} character with hex code hhh.. (non-JavaScript mode)
\uhhhh character with hex code hhhh (JavaScript mode only)
Where can you find that this syntax is supported by PCRE, (mIRC does not use javascript mode)
You are correct about \u being javascript, but that is not the main point of the bug report; \xNNNN not working at all, and \x{NNNN} stops working after a certain code point is.
Posted By: Sat Re: Regex \x sequencing not working properly - 05/08/15 08:55 AM
Originally Posted By: FroggieDaFrog
\xNNNN not working at all

As Wims said, this syntax is not supported by PCRE: unless javascript compatibility is enabled, \xNN only takes up to two hexadecimal digits.

Quote:
\x{NNNN} stops working after a certain code point

You need to add (*UTF8) for this to work.
Posted By: Wims Re: Regex \x sequencing not working properly - 05/08/15 12:08 PM
My post/quote was also showing that PCRE do not support \xNNNN
© mIRC Discussion Forums