good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How to determine a variable value is a numberby elusion (Curate) |
on Aug 03, 2002 at 01:03 UTC ( [id://187260]=note: print w/replies, xml ) | Need Help?? |
In a regex, \d stands for a digit, so if you use It will do something for every item that contains only digits. The ^ marks the start and $ marks the end of the string, telling the regex that you want it to match only if every character can be matched. Hope this helps. elusion : http://matt.diephouse.com
In Section
Seekers of Perl Wisdom
|
|