Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(0\.([1-9]{1})|10(\.0{1,9})?)$
/

Description

test 折扣只能输入0.1-10的最多包含一位小数的数字

Submitted by anonymous - 5 years ago