# Servoy 4.0 modifies RegExp when importing from 3.5

**URL:** <https://forum.servoy.com/t/servoy-4-0-modifies-regexp-when-importing-from-3-5/9401>\
**Category:** Classic Servoy\
**Created:** [August 2, 2008, 5:38pm UTC](https://forum.servoy.com/t/servoy-4-0-modifies-regexp-when-importing-from-3-5/9401 "2008-08-02T17:38:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rioba](https://avatars.discourse-cdn.com/v4/letter/r/aca169/32.png) [@rioba](https://forum.servoy.com/u/rioba)\
**Post date:** [August 2, 2008, 5:38pm UTC](https://forum.servoy.com/t/servoy-4-0-modifies-regexp-when-importing-from-3-5/9401/1 "2008-08-02T17:38:23Z")

</div>

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:]( "Shocked")

[regexp.txt](https://forum.servoy.com/uploads/short-url/gJ4MWR54SLfE8t8zu8yBcDHNlVR.txt) (251 Bytes)

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [August 5, 2008, 10:38am UTC](https://forum.servoy.com/t/servoy-4-0-modifies-regexp-when-importing-from-3-5/9401/2 "2008-08-05T10:38:16Z")

</div>

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?
