Question9Replies9761Views Avinash.Haridasu Member since 2014 264 posts Morgan Stanley Posted: October 29, 2016Last activity: October 4, 2018 Closed Solved Can we write regular expression in expression builder.Just curious to know if we have any support for regular expression in Pega.I mean can we write a when rule which checks for Words starting with ABC/123 etc..***Updated by Moderator: Marissa to update categories*****Moderation Team has archived post**This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post. Low-Code App Development Case Management ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Accepted Solution Posted: 4 years agoDharanitharanR Areteans Technologies replied to Avinash.HaridasuUse below expression wherein you can plugin Regex: pxContainsViaRegex pxReplaceAllViaRegex Posted: 4 years agoAvinash.Haridasu Morgan Stanley replied to Avinash.HaridasuThanks Dharanitharan. This is what i was looking for. Posted: 4 years agoDharanitharanR Areteans Technologies replied to Avinash.HaridasuAlways Welcome! Posted: 3 years agoNalins_99 Deloitte Consulting LLP replied to DharanitharanRHI Please can i know the format in which it has to be used. Thanks Posted: 3 years agoNarenP_Infosys Infosys Pty Ltd replied to Nalins_99Hi Nalin, Please find the format for the expressions mentioned above For pxReplaceAllViaReger pxReplaceAllViaRegex(Param.ContentMessage, "[?, *, <, >, |, : ]", " ") Param variable which is mentioned in the function contains the string with special characters.I have instructed function to replace the special characters.So, output of the funtion will be the string without special characters For pxContainsViaRegex @pxContainsViaRegex(.pyRuleSetVersion, "[0-9][0-9]\\-[0-9][0-9]\\-[0-9][0-9]", false) funtion will check whether the attribute pyRuleSetVersion contains the pattern.Depends on match or unmatch you will get boolean output. Posted: 3 years agoNalins_99 Deloitte Consulting LLP replied to NarenP_InfosysHi Thanks for the quick reply. I am trying to use @pxContainsViaRegex(Param.PropertyName, "[?,.*<>\/|:]",true) Then above is used to check if the Property has any of the Characters, then return a value true. But i am getting error for using the special characters. Is the expression correct. Thank you Nalina. R Posted: 2 years agoCHRISTIN Tata Consultancy Services replied to Nalins_99Need to add excape character '\' to'\', like pxContainsViaRegex(Param.PropertyName, "[?,.*<>\\/|:]",true) Posted: 3 years agosahup1 PEGA replied to Avinash.Haridasufyi - to test regEx: please refer to Code-Pega-Parse.RegExpTester or http://www.regexpal.com/ Posted: 2 years agovijetak4 Vijetha Mulky Kamath replied to Avinash.HaridasuMy requirement is like Return Value has A & B .Can i use the expression here?