http://qs321.pair.com?node_id=11130969


in reply to regex for numbers

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.