Regular expression match occurence

1
In an older version of Mendix (2.5.0.1) we used a regular expression in combination with the replaceAll function to format part of a phone number ie. 0612 to 06 12 replaceAll( substring($formattedNumber, length($areaCode) + 1 ), '(\d)(\d)', '$1 $2') However, now this does not seem to work anymore as it just outputs dollar signs instead. Did the occurence character change??
asked
1 answers
1

This behavior changed indeed and the replacement part will now be escaped automatically. You now need a tiny bit of java to achieve this behavior.

Note that the 'RegexReplaceAll' function in community commons implements the old behavior and does support backreferences / captures.

answered