Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-05-01 17:27
Flavor·PCRE (Legacy)

/
(?:.*?(Constr1)+){3}.*?((Constr1)+)
/
s
Open regex in editor

Description

Change the number in curly braces (3 in this example) to match for the nth occurence of the expression in the two inner parenthesis

Submitted by Alex Hall