Question
2
Replies
1331
Views
Cognizant Technology Solutions
Posted: May 20, 2019
Last activity: June 18, 2019
Closed
Solved
pxReplaceAllViaRegex or replaceall functions are not working with backslash
Hello
The function @String.pxReplaceAllViaRegex(.Notes,'"',"") works correct but @String.pxReplaceAllViaRegex(.Notes,'\',"") throws an error 'Source—
Invalid expression or reference: No candidates found [possible function name, ruleset/version or number of parameter problem]'
Same with @String.replaceAll(.Notes,'\'," ").
Can someone please help? My requirement is to remove backslash from the Notes. Read the article https://community1.pega.com/community/pega-product-support/question/replaceall-not-working-expected but did not do much help.
Any help would be appreciated.
Remya.
Found the solution : Use @replaceAll(.Notes,"\\"," "). \\ acts like \.