Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(?:-|~|||)[\s\S]{0,15}(\d{4})[\s年-]+(\d{1,2})[\s月-]+(\d{1,2})\D+(?:(\d{1,2})[\s::时点]+(\d{2})?\D+){0,}
/

Description

支持仅有日期

Submitted by anonymous - 6 years ago