Regular Expressions in Servoy 6

Hi everyone,

I was wondering if the Regular Expression (a part of the JavaScript engine I suppose) was changed in Servoy 6. Because one of my RegExp’s are really broken…

Here I have a example which is working in Servoy 3.5 but is broken in Servoy 6 but it works on http://regexpal.com

(Joël|Rick|Réck)

In Servoy 6 the name Rick will be matched but the names Joël and Réck wont… I suppose its something with those special chars…

Regards,

Rick

i guess there is some unicode problem there

Between 3.5 and 6 there is a rhino change, (done in 4)

You could try to escape those special chars with unicode chars so:

(Jo\u00EBl|Rick|R\u00E9ck)

If I try it like this in the command console, both options work for me:

[attachment=0]regex.png[/attachment]
do you get different results?

Ok thanks, the regex works… It was an encoding issue of my own