From: Davide P.C. <dp...@un...> - 2006-09-20 19:08:44
|
> I believe the current "parser" uses an initial space to separate the > units from the number and thereafter there > can be no spaces. (The regex expression looks for the last non- > trailing space.) That's right (and this is what the old one did, too, if I remember correctly). > I think Davide has plans to some day extend the parser > so that it is a true parser of units instead of using regex > expression matches. Yes, I had the specifications worked out at one time for a units class that would allow you to do things like 3 ft / 2 sec and so on, but it has never been implemented. This is a "wish list" item. I'll think about the regular expression and see if I can come up with a better one for finding the split. I've got some ideas. Davide |