Regular Expressions 101

Community Patterns

Remove leading zeros (on the left) on ipv4 (ip v4)

0

Regular Expression
ECMAScript (JavaScript)

Description

Regex to remove leading (on the left) zeros on ipv4 (ip v4)

Source: https://autohotkey.com/board/topic/15491-regex-to-strip-leading-zeroes-out-of-an-ip-address-octet/

Submitted by YMP - 3 years ago