Regular Expressions 101

Library entries

Dates in fluent language

Vote

0

Regular Expression
javascript

/
((in) )?(today|tomorrow|yesterday|sunday|monday|tuesday|wednesday|thursday|friday|saturday|(one|two|three|four) (hours|weeks|months|years))( ago)?( at (\d\d?:\d\d|\d\d?) ?(am|pm|AM|PM)?)?
/
gm

Description

Loading markdown...
Submitted by xxx - 2 months ago