Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(?:0*)(\d+(\.(25|5|75))?)(?:0*)$
/
gm

Description

000.250 => 0.25 1.1 => 1 0.0 => 0

Submitted by Paul Erickson - 9 years ago