2013年9月12日星期四

One decimal regular

Can only enter a positive integer and a non-negative decimal Online
------ Solution -------------------------- ------------------
\ \ d + \ \.? \ \ d
------ Solution --------- -----------------------------------
^ [0-9] + (\. [0 -9] {1})? $
------ Solution ------------------------------- -------------

\ \ d + \ \.? \ \ d?
The first one integer not match.

没有评论:

发表评论