mIRC Home    About    Download    Register    News    Help

Topic Options
#257163 - 17/03/16 11:31 AM $regex bug?
SteveNunes Offline
Ameglian cow

Registered: 17/03/16
Posts: 24
$regex(eu jŠ sabia,\bjŠ\b) - returns 0
$regex(eu ja sabia,\bja\b) - returns 1
$regex(eu jŠh sabia,\bjŠ\b) - return 1
$regex(eu jah sabia,\bja\b) - return 0

its a bug or so???


Edited by SteveNunes (17/03/16 11:35 AM)

Top
#257164 - 17/03/16 02:20 PM Re: $regex bug? [Re: SteveNunes]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3435
Loc: France
Hello, no it's not a bug, \b by default only checks for ascii, you must use the /u modifier, recently supported by mIRC. It tells the engine to use Unicode to identify characters.
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#257166 - 17/03/16 02:44 PM Re: $regex bug? [Re: Wims]
SteveNunes Offline
Ameglian cow

Registered: 17/03/16
Posts: 24
i see... ty verymuch mate

Top
#257171 - 17/03/16 07:03 PM Re: $regex bug? [Re: SteveNunes]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4295
Loc: London, UK
Thanks for your post. I checked your regular expressions at regex101.com and it returned the same results as mIRC. As Wims mentioned, you will need to use the /u modifier in the latest mIRC beta to handle Unicode characters or you can use (*UCP)(*UTF8) at the start of the pattern (see PCRE for more information).

Top
#257174 - 18/03/16 10:34 AM Re: $regex bug? [Re: Khaled]
SteveNunes Offline
Ameglian cow

Registered: 17/03/16
Posts: 24
thanks again! wink

Top