[Tfug] Regexps

Jeremy C. Reed reed at reedmedia.net
Wed May 2 19:41:55 MST 2007


On Wed, 2 May 2007, George Cohn wrote:

> Unfortunately, this gives me a number like 2984 when what I want is two 
> separate numbers, 29 and 84.

You were using ([0-9.]+) so split that at the period and don't put a 
period in the [set]:

([0-9]+)\.([0-9]+)




More information about the tfug mailing list