Question2Replies1154Views×Close popoverAditya Viswanatha (AdityaViswanatha) JBC International Finance Limited JBC International Finance Limited SG View ProfileSend Message AdityaViswanatha Member since 2014 34 posts JBC International Finance Limited Posted: June 16, 2016Last activity: June 16, 2016Posted: 16 Jun 2016 10:26 EDTLast activity: 16 Jun 2016 16:56 EDT 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 Experience ×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 agoPosted: 16 Jun 2016 10:31 EDT×Close popoverSamanth Reddy Chintakuntla (SamanthReddyC) Cognizant Cognizant US View ProfileSend MessageSamanthReddyC Cognizant replied to AdityaViswanathaHiUse this function pxReplaceAllViaRegexThanksSam Posted: 4 years agoPosted: 16 Jun 2016 12:22 EDT×Close popoverAditya Viswanatha (AdityaViswanatha) JBC International Finance Limited JBC International Finance Limited SG View ProfileSend MessageAdityaViswanatha 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.