Regular Expressions 101

Community Patterns

0

匹配合法的变量名

Python
\b[a-zA-Z_]\w+
Submitted by anonymous - 4 years ago

whitespaces and positive numerics

1

Regular Expression
ECMAScript (JavaScript)

/
^\s*[0-9]+(\.[0-9][0-9]{0,2}?)?$|^$|^\s*$
/

Description

Loading markdown...
Submitted by Pubudu (motustudio) - 8 years ago