Regular Expressions 101

Community Patterns

0

Address

Golang
for the demo 2019/09/27
Submitted by anonymous - 4 years ago

Tests string if it is a valid number with or without its unit

0

Regular Expression
ECMAScript (JavaScript)

/
(-?)\d+(\.?(\d+?)?(\w+))?
/
ig

Description

Loading markdown...
Submitted by anonymous - 4 years ago