Posted: 16 Aug 2017 3:18 EDT Last activity: 8 Sep 2017 8:09 EDT
Allow backslash (\) during special characters validation
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.
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.