Yes, you can use the (*UTF8) modifier in the regex. The following example will return 1 because the given character is in the given range:

Code:
$regex(É,/(*UTF8)[È-Ê]/g)

Without (*UTF8), it does not work as intended: it returns 2 to indicate it (more or less accidentally) found two matching extended-ASCII bytes.


Saturn, QuakeNet staff