Question2Replies1132Views AdityaViswanatha Member since 2014 34 posts JBC International Finance Limited Posted: June 16, 2016Last activity: June 16, 2016 Closed Solved Hoe to Replace Alphabets in a String to "0"I have a requirement to replace all the alphabets(only alphabets) in a string with 0's how can i achieve itMessage was edited by: Marissa Rogers -Added category User Interface ×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 agoSamanthReddyC Cognizant replied to AdityaViswanathaHiUse this function pxReplaceAllViaRegexThanksSam Posted: 4 years agoAdityaViswanatha JBC International Finance Limited replied to SamanthReddyCThank you Very much.It worked.Actual usage: @(Pega-RulesEngine:String).pxReplaceAllViaRegex("ABCD123456", "[^0-9]", "0") output is 0000123456Example for referenceFor example, calling @pxReplaceAllViaRegex("Hello, Sir.", "[^a-zA-Z\\s]", "") would result in Hello Sir - the comma and period would be removed.