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.
没有评论:
发表评论