Regular Expressions 101

Community Patterns

Get Nth value (3 times)

3

Regular Expression
PCRE (PHP <7.3)

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

Description

capture Nth character from string, 3 times

Submitted by K. - 10 years ago