I need a regex to remove all spaces and replace them with commas. But I don't want to remove the spaces if the sentence starts with a space.
EXAMPLE:
I like this script -->I,like,this,script
I like this script --> I,like,this,script
In reply to regex to remove space by perlUser345
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |