Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Remove White Space with Replace String Transform Function

Smashley
Tera Guru

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.

 

Smashley_0-1679078902881.png

 

1 ACCEPTED SOLUTION

Smashley
Tera Guru

Solved my issue with ChatGPT. Used \s+

Needed to remove the forward slash.

View solution in original post

3 REPLIES 3

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.

Smashley
Tera Guru

Solved my issue with ChatGPT. Used \s+

Needed to remove the forward slash.