Regular Expressions 101

Community Patterns

Community Library Entry

3

Regular Expression
PCRE (PHP <7.3)

/
^(?=.{2}(.))(?=.{5}(.))(?=.{7}(.))
/

Description

capture Nth character from string, 3 times

Submitted by K. - 11 years ago