Hi
I cant for the life of me work out how to do this as a reg-ex even though it should be simple! :o(
I have a series of numbers which can be positive or negative with 1-3 digits following and then 1 decimal place.
Where I'm getting stuck is how to say "it MAY have a - first but maybe not and how to say "1 to 3 digits before the decimal point.
So far I had:
if ($_ =~ /^((-)d{1-3}\.\d)/) {
... but its not working :o( Where am I going wrong?
In reply to Regex woes... by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |