Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-07-13 19:15
Flavor·PCRE (Legacy)

/
^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})$
/
Open regex in editor

Description

Has group match to match 2nd third and fourth octets preceded by "."

Submitted by anonymous