Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(25[0-5]|2[0-4]\d|1[0-9]{2}|[1-9]?[0-9]|000)$
/
gm

Description

this is for matching integers from 0 to 255

Submitted by anonymous - 3 years ago