Community Patterns

Community Library Entry

1

Regular Expression
Created·2022-01-21 22:24
Updated·2022-01-22 00:35
Flavor·ECMAScript (JavaScript)

/
\b0|([^\d*\.?\d*])
/
g
Open regex in editor

Description

Rejects first symbol if 0 and all other non number (doesn't includes .123 )

Submitted by Sofitt