Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Correct Regex for reading stock symbol?

by samtregar (Abbot)
on Jan 31, 2006 at 17:47 UTC ( #526821=note: print w/replies, xml ) Need Help??


in reply to Re: Correct Regex for reading stock symbol?
in thread Correct Regex for reading stock symbol?

Not true. Observe:

$ 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://526821]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2021-04-23 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?