Question 3 Replies 444 Views × Close popover Kathir kanagu (Kathirk6) ATOS Origin India PVT Ltd ATOS Origin India PVT Ltd IN View Profile Send Message Kathirk6 Member since 2018 1 post ATOS Origin India PVT Ltd Posted: March 3, 2020 Last activity: March 3, 2020 Posted: 3 Mar 2020 2:17 EST Last activity: 3 Mar 2020 5:52 EST Closed Truncating the Leading Zeros of the text property in UI Hello, In Our Application, we have property (Text) to be displayed in UI without leading Zeros of its value. We have tried with some controls but its not working as this property is not an integer. eg: We have tried with FormatDecimal - control, but its not working for alphanumeric values. So could anyone please check and revert with any control or solution for this. Property Value: 000000120430123000 ----------> 120430123000 B5F23654970001 ----------> B5F23654970001 Pega Platform 8.1.4 Enterprise Application Development Admin Studio × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover 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. Posted: 1 year ago Posted: 3 Mar 2020 2:35 EST × Close popover Bhavya Tyagi (Bhavya) Coforge DPA Senior Technical Lead Coforge DPA GB View Profile Send Message Bhavya Coforge DPA replied to Kathirk6 Hi Can you write a function as below: pxReplaceAllViaRegex(<Property> , "^0+" ,"") The regex will remove the leading zeros and return the string. Hope it helps. Regards Bhavya Posted: 1 year ago Updated: 1 year ago Posted: 3 Mar 2020 3:25 EST Updated: 3 Mar 2020 3:26 EST × Close popover Rincy Rappai (RINCYRAPPAI_GCS) PEGA Technical Lead Pegasystems Inc. IN View Profile Send Message RINCYRAPPAI_GCS PEGA replied to Kathirk6 Hello Karthirk, Have you tried built-in trim function under String? Refer attached screenshot from Pega 7.3.1. Posted: 1 year ago Posted: 3 Mar 2020 5:52 EST × Close popover Rachit Agarwal (Rachit_Agarwal) PEGA Senior Technical Solutions Engineer Pegasystems Inc. IN View Profile Send Message Rachit_Agarwal PEGA replied to Kathirk6 You can use an Edit Input rule in the Property rule and call a function to remove the trailing zeros.