Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^$|^(\d+(?:[\.\,]\d{1,2})?)$
/
gm

Description

tuščias laukas sveikas skaičius 1 arba 2 skaičiai po kablelio / taško pvz. 123 123,5 123,54 123.5 123.54

Submitted by anonymous - 5 years ago