Hi Monks,
I am using $string =~ s/^\s*$//mg; to match & remove white-spaces from a string. The current code is matching spaces, tabs and newlines, but I don't want to match newlines, I just want to match all the other white-spaces except newlines. I want to exclude the newlines from this reg-ex. How can I do this? Can any monk show me a way to do it?
Thanks in advance.
In reply to regex doubt on excluding by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |