This comment might be a bit late, but anyway... coincidentally, I read yesterday an example in perlretut, which addresses precisely this question. The final solution is the same as presented in the FAQ, by the way.
In reply to Re: regex for numbers
by hrcerq
in thread regex for numbers
by BernieC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |