
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 11:57 AM
I am attempting to remove all white space from a string using the Replace String Transform Function in Flow Designer. What is the proper regex to use? I have attempted using various forms of /\s+/g with no luck.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 12:33 PM
Solved my issue with ChatGPT. Used \s+
Needed to remove the forward slash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 12:14 PM
@Smashley , Have a look this post https://www.servicenow.com/community/developer-forum/how-to-remove-white-space-from-a-string-field-i...
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 12:17 PM
That post does not relate to my issue, as I am not writing a script. I am using the Transform Functions inside Flow Designer. Please see the screen shot I provided.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 12:33 PM
Solved my issue with ChatGPT. Used \s+
Needed to remove the forward slash.