Servoy 4.0 modifies RegExp when importing from 3.5

Previously I posted a message because one of the methods that worked well in 3.5.6 was throwing an error in 4.0. The problem, a parenthesis in a RegExp. I thought it was an error of mine, but i later discovered that many RegExp in different methods/functions had a parenthesis that was not present in 3.5.6.

Servoy 4.0 seems to add parenthesis when importing methods from 3.5.6 in some RegExp, where it thinks there should be one.

I attach a text file with an example: the Servoy Forum refuses to accept all those slashes and backslashes :shock:

regexp.txt (251 Bytes)

do you have a 3.5 solution with an simple method with a regexp where you see it go wrong?

So in 3.5 it doesnt have the parenthesis but suddenly in 4.0 they are added?