My requirement is to allow only -,/,\,( and ) and restrict all other special characters. I tried below expression and edit validate rule. Both of them are not allowing backslash (\). Please suggest proper syntex.
You can validate your regular expression which you are trying to use in Edit Validate rule from Code-Pega-Parse.RegExpTester activity which internally used for the Edit Validate functionality as explained over here.
Hope this information might be helpful to you in validating your regex.
Posted: 6 years ago
Posted: 16 Aug 2017 6:13 EDT
Mahesh Midthuru (Mahesh Midthuru)
Senior Principal Application Engineer, Customer Service Digital
Also if you want to allow the backslash in the regular expression then you need to provide 4 backslashes in your regular expression as explained over here. In my test case i can able to allow the backslash in the regular expression as shown in attachment which is tested via RegExpTester activity. Similarly you can construct your own regex for your requirement.