in reply to Re: Reg exp questions
in thread Reg exp questions
if $str =~ s/[\h]/_/g; replaces all white spaces by _ and if there are more than 1 adjacent white space, how to replace all of adjacent white spaces by one _ instead of _ times number of adjacent white spaces?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reg exp questions
by davido (Cardinal) on Nov 09, 2014 at 17:32 UTC | |
|
Re^3: Reg exp questions
by poj (Abbot) on Nov 09, 2014 at 12:55 UTC |