Regular Expressions 101

Community Patterns

Exclude subdirs from URL

1

Regular Expression
PCRE (PHP <7.3)

/
watersportsoutlet.com([\D]{2}.\/|\/[\D]{2}-[^us]{2}\/)
/
mg

Description

Excludes certain subdirs unless they contain specific valid patterns

Submitted by anonymous - 4 years ago