Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-08-16 01:46
Flavor·PCRE (Legacy)

/
^\((.*,\s*\d+(?!,\s*'\d{1,2}-\d{1,2}-\d{1,4}'))\);$
/
gm
Open regex in editor

Description

Regex for detecting lines that don't have a date before closing parentheses. It uses a negative lookahead.

Submitted by anonymous