Community Patterns

Community Library Entry

5

Regular Expression
Created·2015-07-16 03:19
Flavor·PCRE (Legacy)

/
^[^0|\D]\d{0,9}(\.\d{1,2})?$
/
Open regex in editor

Description

Pattern that only accept numeric value and greater than zero with up to decimal places�( you can change the decimal places just replace {1,2} depend on how many decimal places you like

Submitted by Eugene To