Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-02-25 17:49
Flavor·PCRE (Legacy)

/
^(?!.*\/prod\/).*\/cat\/.*$
/
g
Open regex in editor

Description

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

Submitted by Douglas Ianitsky