Community Patterns

Community Library Entry

1

Regular Expression
Created·2017-02-01 05:54
Flavor·PCRE (Legacy)

/
^(\-{0,1})(?:(?:0*)(\d+))?((?:\.)(?:\d*?))?0*$
/
gm
Open regex in editor

Description

Trim leading zeroes

012.210 => 12.21 .002300 => .0023

Submitted by FAy