if ($tainted =~ / ^ # don't start mid-string \s* # skip any leading space (\w{3}[\w.]*) # prefix to $1 \@ ([\w.]+) # hostname to $2 \s* # skip any trailing space $ /x) # don't end mid-string { $untainted = "$1\@$2"; }
--
[ e d @ h a l l e y . c c ]
In reply to Re: slightly broken reg-ex
by halley
in thread slightly broken reg-ex
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |