The RegexReplace placeholder is using a comma separator to split its 3 arguments.
In case the value to which we want to apply the regex is placed directly in the shape data, and also contains a comma, do we have the option to define a custom separator?
In case the value to which we want to apply the regex is specified through another placeholder (ie [Property:xxx] within RegexReplace, and also contains a comma, do we expect this to work, or is it also needed to define a custom separator (if possible)?
Thanks!
Hi Ruben,
You can replace the separator by using the [Sep:XY] indicator at the start of your RegexReplace content:
[RegexReplace:[Sep:,#]regex#value#replace-value]
A comma inside a nested placeholder will already be resolved and is allowed:
[RegexReplace:regex,[var:a,b],replace-value]
Edit:
If in the example above the resolved value of the session variable contains a comma, you do need to change the separator.
I’ve tested this with ‘property’ placeholder as well and couldn’t reproduce the problem. Let me know if some further investigation is required.
Edit: If the resolved value contains a comma, you do need to change the separator. I’ll update my answer.
Thanks for the syntax. seems to work fine.
My only remark is that at first sight I also have to replace the separator when referencing the value through a ‘Property’ placeholder.