Regular Expressions 101

Community Patterns

Notice and deprecated php error message

1

Regular Expression
ECMAScript (JavaScript)

/
(?:Notice|Deprecated):\s+(.+) in .+? on line (\d+)
/
gm

Description

get the notice or deprecated from php on your content

Submitted by Guss - 8 years ago