^0-91100-914$
This regular expression matches a decimal number with up to 10 digits before the decimal point and up to 4 digits after the decimal point.
Explanation of the regular expression:
^asserts the start of the string.[0-9]{1,10}matches any digit from 0 to 9, with a minimum of 1 and a maximum of 10 occurrences.(\.[0-9]{1,4})?matches an optional decimal part.\.matches the decimal point.[0-9]{1,4}matches any digit from 0 to 9, with a minimum of 1 and a maximum of 4 occurrences.?makes the decimal part optional.
$asserts the end of the string
原文地址: http://www.cveoy.top/t/topic/i1Ym 著作权归作者所有。请勿转载和采集!