Regular Expressions 101

Library entries

Remove leading zeros from file names

Vote

0

Regular Expression
python

'
((?<=\D)|(?<=^))(0+)(?=[1-9]+)|((?<=\D0)0+(?=\D))|((?<=^0)0+(?=\D*$))
'
g

Description

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