Regular Expressions 101

Community Patterns

bash path splitter

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 - 2 years ago