Community Patterns

Community Library Entry

-1

Regular Expression
Created·2021-03-24 16:23
Flavor·Java

"
^(?:(?:25[0-5]|2[0-4]\d|1?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|1?\d\d?)$
"
mg
Open regex in editor

Description

This RE is divided into four parts. The first three parts are acceptable numbers from 0 to 255 followed by "." The last part is an acceptable number but not followed by "."

Submitted by EMAM1999