Insert a space using a Regular Expression

  • 27 February 2018
  • 1 reply
  • 14 views

Badge +2

Hi!


I have a string that goes ItemA,ItemB,ItemC,ItemD etc. 

What I want is: ItemA, ItemB, ItemC, ItemD   - essentially a space after each comma

I've tried using a Regular Expression to replace "," with ", " but it ignores the space after the comma, and I keep ending up with a list that has no spaces (the exact thing I'm trying to get rid of).

I also tried replacing "," with s and %20, and both gave me those characters instead of spaces. 

What am I doing wrong? 

Thanks!


1 reply

Badge +9

It is working fine in SP 2013.

213666_pastedImage_1.png213667_pastedImage_2.png

Reply