in reply to regular expression to get a decimal value

I don't know about the other portions of the logging, but to me that looks like:

I'd probably use ([0-9]+\.?[0-9]*)V with a /g to grab them all (both).

Replies are listed 'Best First'.
Re^2: regular expression to get a decimal value
by JavaFan (Canon) on May 17, 2011 at 21:36 UTC
    For a decimal value, I'd use /[0-9]+(?:\.[0-9]*)?|\.[0-9]+/