I am looking for some wisdom about a regular expression:
($ref !~ /^-?\d*(\.0*)?$/)
Firstly I think that this identifies $ref as an integer (i.e. ref is not equal to a non-integer), that being the case I want to adapt this to identify $ref as a negative integer.
I tried this:
($ref !~ /^-[1-9]\d*$/)
Help appreciated.
Scott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |