Posted By

joelhaus on 09/23/10


Tagged

regex


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

joelhaus
Tyster


Number Match


 / Published in: Regular Expression
 

URL: http://books.google.com/books?id=yY_EsWFMj-QC&lpg=PA479&dq=Regular%20Expressions%20Cookbook&pg=PA343#v=onepage&q&f=false

optional integer and optional fraction. Decimal dot must be omitted if the fraction is omitted.

  1. ^([0-9]{1,3}(,[0-9]{3})*(\.[0-9]+)?|\.[0-9]+)$

Report this snippet  

You need to login to post a comment.