in reply to Regex matching after ASCII characters
$file =~ m{ \A [A-Z]{6} [A-Z0-9]{2} $prompt_host }xms;
But it wouldn't be a bad idea to do some sanity checks on $prompt_host before randomly injecting user entered text into your regexp.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Regex matching after ASCII characters
by Anonymous Monk on Oct 05, 2011 at 21:11 UTC | |
by elTriberium (Friar) on Oct 05, 2011 at 21:36 UTC | |
by Anonymous Monk on Oct 05, 2011 at 21:41 UTC | |
by AnomalousMonk (Archbishop) on Oct 05, 2011 at 22:18 UTC |
In Section
Seekers of Perl Wisdom