This works,if ($description =~ /^\s*\w+@\w+\.\w+\s*$/) { $description =~ s/ //g; $email=$description; #it does something special.... } else { #something to do }
In reply to Re: special handling with regular expressions
by perlinux
in thread special handling with regular expressions
by data67
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |