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?
In reply to Re^2: Reg exp questions
by carolw
in thread Reg exp questions
by carolw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |