Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Any ideas why this is doing it? I'm using ActiveState Perl btw on a WinXP server with IIS 5.0.$stock_symbol = $INPUT->param('stock_symbol'); if ($stock_symbol =~ /^([-\@\w.]+)$/ && length($stock_symbol) < 11 + && $stock_symbol ne "") { $stock_symbol = $1; } else { print "Invalid Symbol!\n"; exit;}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Correct Regex for reading stock symbol?
by ikegami (Patriarch) on Jan 31, 2006 at 18:02 UTC | |
by martin (Friar) on Jan 31, 2006 at 19:08 UTC | |
by ikegami (Patriarch) on Jan 31, 2006 at 19:24 UTC | |
by Anonymous Monk on Jan 31, 2006 at 18:11 UTC | |
by davido (Cardinal) on Jan 31, 2006 at 18:17 UTC | |
by Anonymous Monk on Jan 31, 2006 at 18:49 UTC | |
Re: Correct Regex for reading stock symbol?
by davido (Cardinal) on Jan 31, 2006 at 17:38 UTC | |
Re: Correct Regex for reading stock symbol?
by kwaping (Priest) on Jan 31, 2006 at 17:39 UTC | |
by samtregar (Abbot) on Jan 31, 2006 at 17:47 UTC | |
by dimar (Curate) on Jan 31, 2006 at 20:18 UTC |