Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(?:(?<dateShort>\d\d\/\d\d\/\d{4})|(?<dateLong>\w* \d\d, \d{4})|(?<dateISO>\d{4}-\d\d-\d\d)).*label:\s(?<label>\w*)\)
/
gmi

Description

Classify <dateShort> \d\d / \d\d / \d{4} <dateLong> \w* \d\d, \d{4} <dateISO> \d{4}-\d\d-\d\d

and label them

Submitted by anonymous - 2 years ago