Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
\b(((copyright)\s)?)((©|\(c\))?[^(\(|\;|\{)])
/
gi

Description

searches for either Copyright or copyright symbol, or the programmer's short hand of (c) (which is NOT legal, use the symbol!).

Submitted by Henry Rieke - 8 years ago