in reply to Re: Correct Regex for reading stock symbol?
in thread Correct Regex for reading stock symbol?
$ perl -e 'print "broken\n" if "foo" =~ /[.]/' $ perl -e 'print "ok\n" if "foo." =~ /[.]/' ok
The period is not magical inside a character class.
-sam
|
|---|