Discussion

Instellars
IN
Posted: Jul 17, 2022
Last activity: 2 weeks ago
Last activity: 13 Sep 2023 22:32 EDT
Remove duplicate white spaces (including tabs, newlines, spaces, etc...) in a string
Hi,
If string has more duplicate spaces. you can use below function with expression and it will remove all the duplicate spaces from string.
For example: Lorem Ipsum Dolor 96 and you can remove the duplicate spaces and out put is Lorem Ipsum Dolor 96
@pxReplaceAllViaRegex("Lorem Ipsum Dolor 96","\\s+"," ")
Thanks
***Edited by Moderator: Pooja Gadige to change category from Update to Product***