What about something like this:

"100.12".match(/\d+(?:\.\d+)?/)

HTH,
Matt

On 6/12/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:

Hi,

has anybody some regular expressions at hand that work in JS to match
decimal numbers, eg. 100, 100.4 or 100,120.124

Thanks for sharing.

--
Jörn Zaefferer

http://bassistance.de


Reply via email to