Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(.+?(?=administrator)).*((?<=administrator[0-9]).*)
/
g

Description

Split a a path into to groups around a central directory

Submitted by me - 3 years ago