Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(a((?>[^ab]|(?1))*)b)
/
smg

Description

Gets the content between a and b recursively, getting the topmost set first

example token to search for tags: aaaaabbbbbaababbaabbba

Submitted by anonymous - 6 years ago