In an older version of Mendix (188.8.131.52) 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??
Pieter van de Braak
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.