Regular Expressions 101

Matching upto 255 number range

Open Workspace
  • PCRE (Legacy)
  • Match
1

Regular Expression

/
^(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