Regular Expressions 101

Sponsors

Library entries

1
javascript

HTML注释

HTML注释
Submitted by anonymous - 3 months ago
1
javascript

phone regex

phone regex
Submitted by antiai - 2 months ago
1
javascript

提取步骤1

提取步骤1
Submitted by liangchao - 2 months ago
1
javascript

array path

Extract the array path from a nested path
Submitted by anonymous - a month ago
1
javascript

File extension

Retrieve the file extension of a filename
Submitted by anonymous - 21 days ago

Regular Expression For Date

Vote

2

Regular Expression
javascript

/
^(?:^(?:(?:(?:(?:(?:0?[13578]|1[02])[- /.]31)|(?:(?:0?[13-9]|1[0-2])[- /.](?:29|30)))[- /.](?:1[6-9]|[2-9]\d)\d{2})|(?:0?2[- /.]29[- /.](?:(?:(?:1[6-9]|[2-9]\d)(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))|(?:(?:0?[1-9])|(?:1[0-2]))[- /.](?:0?[1-9]|1\d|2[0-8])[- /.](?:(?:1[6-9]|[2-9]\d)\d{2}))$)$
/

Description

Loading markdown...
Submitted by Priyanka Khadilkar - 8 years ago