in reply to handling erronous input

What I would suggest is breaking your logic (and code) up into chunks:

I'm sure there's a regex that would do everything in one swell foop, but my regex mojo hasn't fully wakened yet.


Information about American English usage here and here. Floating point issues? Please read this before posting. — emc