Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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

Description

no description available

Submitted by anonymous - 8 years ago