Regular Expressions 101

Community Patterns

1...34567...11

Strings with length multiple of 3 or 5

0

Regular Expression
PCRE (PHP <7.3)

/
^...(?:(?:...)*$|..(?:.....)*$)
/

Description

Lines with length multiple of 3 or 5.

Submitted by ismtabo - 8 years ago