in reply to Re: regex to remove space
in thread regex to remove space
That replaces one or more contiguous spaces with comma throughout the string, but only if there's a non-space character preceding (positive look-behind).s/(?<=\S) +/,/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regex to remove space
by perlUser345 (Acolyte) on Dec 16, 2015 at 17:20 UTC |