Regular Expressions 101

Community Patterns

Url Exclud word

1

Regular Expression
PCRE (PHP <7.3)

/
\/blog\/+^(?!.*tag).*$
/

Description

exclude match if a word is in the url

Submitted by anonymous - 8 years ago