Regular Expressions 101

Library entries

Extracting Numbers

Vote

1

Regular Expression
pcre

/
^\D*(?<number>0*(?<nonzeros>\d+))(?<suffix>.*)$
/
gm

Description

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