mIRC Homepage
Posted By: nok help $regex - 18/11/08 09:40 PM
Trouble...
Code:
$regex(Á,/^(Á)$/Si) 1
$regex(á,/^(Á)$/Si) 0

It would be a solution ...?
Code:
$regex($lower(á),/^( $+ $lower(Á) $+ )$/Si)
Posted By: Tomao Re: help $regex - 19/11/08 03:47 AM
What exactly are you trying to do?
Posted By: nok Re: help $regex - 19/11/08 08:35 AM
It's a bot trivia, I'm trying to read the answers
Posted By: RoCk Re: help $regex - 19/11/08 03:00 PM

[08:59] * RoCk smells a trivia cheat script
Posted By: Mpdreamz Re: help $regex - 19/11/08 04:52 PM
Quote:

9. Case-insensitive matching applies only to characters whose values
are less than 128, unless PCRE is built with Unicode property support.
Even when Unicode property support is available, PCRE still uses its
own character tables when checking the case of low-valued characters,
so as not to degrade performance. The Unicode property information is
used only for characters with higher values. Even when Unicode property
support is available, PCRE supports case-insensitive matching only when
there is a one-to-one mapping between a letter's cases. There are a
small number of many-to-one mappings in Unicode; these are not sup-
ported by PCRE.


I suspect Khaleds compiles PCRE with --enable-utf8 and not with --enable-unicode-properties. The latter includes a 30k mapping of lower and uppercasing in UTF-8. Should add a bug/feature request when i get home.
© mIRC Discussion Forums