Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-12-08 16:51
Flavor·ECMAScript (JavaScript)

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

Description

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

Submitted by Paul Erickson