Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(?<IPV4>(?:(?:25[0-5]|(?:2[0-4]|1\d|[1-9]|)\d)\.?\b){4})
/
g

Description

(?<IPV4>(?:(?:25[0-5]|(?:2[0-4]|1\d|[1-9]|)\d)\.?\b){4})

Originating from ^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$ at only 43 chars Source: Danail Gabenski

Submitted by 0xp - 2 months ago