The \s actually tests for any white-space character, including tabs and new-lines.if (defined $var or $var =~ /^\s+$/) { # $var is empty or contains only whitespace }
In reply to Re: Regular Expression Help!
by cdarke
in thread Regular Expression Help!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |