in reply to slightly broken reg-ex
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 ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: slightly broken reg-ex
by jcpunk (Friar) on Jul 02, 2003 at 15:26 UTC |