Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(?!.*\/prod\/).*\/cat\/.*$
/
g

Description

Search for /cat/ in the string where don't have /prod/ itself.

Submitted by Douglas Ianitsky - 9 years ago