Regular Expressions 101

Community Patterns

Match the series of integers 1 to 100

0

Regular Expression
PCRE (PHP <7.3)

/
^(((.)(?=. \3))?(?=[0-8]?(\d? \d?)[1-9])(?=0?\4[1]|1\4?2|2\4?3|3\4?4|4\4?5|5\4?6|6\4?7|7\4?8|8\4?9|9\4?0).?9? ){98}99 100$
/
gm

Description

no description available

Submitted by anonymous - 5 years ago