in reply to Re: Re: Extracting a number from a string
in thread Extracting a number from a string

But it doesn't work, that's exactly the reason why you should use a module!

Zaxo has a 'working' hand-rolled solution somewhere else in this thread, though it breaks on negative numbers (which might or might not be OK, depending on the input data).

Granted, in this simple case it might be OK not to use a module but still you have to know what you are doing. In all but the most trivial cases, use the module and spare yourself the extra debugging work. Try e.g. to match a general floating point number like -2.4345e-12 and then you know why it's better/easier/quicker to use a module.

-- Hofmator