Sometimes to use and too lazy to move the brain to think, on-line search, all his mother's mess, and then write their own, first mark, not to move the brain, the mother no longer have to worry about my regular expression ....
Two fractional money unit Price:
^ (([1-9][0-9]+) | | 0| | (0\\.0[1-9]) | | (0\\. [1-9] [0-9]) | | ([1-9][0-9]+\\.0[1-9]) | | ([1-9][0-9]+\\. [1-9] [0-9])) $--not allow decimal 0 xxx.00
^ (([1-9][0-9]+) | | 0| | (0\\. [0-9] {2}) | | ([1-9][0-9]+\\. [0-9] {2})) $--Allow decimal all 0 xxx.00
does not allow 00 to start, can be integer or with two decimal places
Phone Number:
^ ((13[0-9]) | (15[^4,\\d]) | (18[0,5-9]) | (170)) \\d{8}$
Support 170 New numbers
----------not finished, to be continued
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Regular Expression Collection