Regex removing , space and replacing with ,

Hi, I am using the Text Replace Module to help remove the SPACE after a comma in a string of text…

Below is my module

I have a literal space after the , in Pattern…

I also tried Regex:

/,\s?/

The regex isn’t working either.

Thanks in advance for your help

1 Like

Use this pattern,

,\s?

And, enable the global match and multiline flag.

2 Likes

Thank you that did the trick. I’m kinda learning the regex now…it’s daunting at first but help from people like you and generators it makes a bit more sense.

2 Likes