or you could use $str =~ s/\b \b//g;
In reply to Re^2: Regular Expressions: Removing 'only' single spaces from a string
by GrandFather
in thread Regular Expressions: Removing 'only' single spaces from a string
by BioBoy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |