129
Views
1
Comments
Regex Replace not working for Numerical Operators

Hi All,

I am using Regex Replace to replace special character in a text input but it's showing parsing error for numerical operators. Like if we want to replace "*" to Asterisk or "+" to Plus . We can use JS regular expression for the conversion process. Is there something in Outsystems to make it working ? 

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Suprio,

The encountered error is because you missed the '\' in the regular expression. If you want to match a literal asterisk or plus symbol, then use \* and \+ as regular expression pattern values to the Regex_Replace action as shown below.

I hope this helps you!


Kind regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.