Hello Support.
Just wanting to check in regards to the following post:
You can use function REPLACE to clean up unwanted characters and leave the meaningful ones. This can be done using regular expressions (documented at the end of the User Guide). For example, characters '+', '-', '(' and ')' can be removed like this:
If MATCHES(Person.Phone, '[+-()]') = 'Yes' Then Person.Phone = REPLACE(Person.Phone, '[+-()]', '')
I have set this business object up to test it (using REPLACE_PATTERN instead of REPLACE) and can't get this to work.
The '(' and ')' result in errors according to the Server Output:
-Execution Exception after starting system process message Internal error. Illegal character range near index 3
[+-()]
^
Also, have tried just looking for the '+' and the '-' characters using
If MATCHES(Person.Phone, '[+-]') = 'Yes' Then ....
with input as "+-61 (02) 9999 9999"
resulting in the condition being evaluated to false (according to the Server Output).
Any suggestions on what the problem might be?