Regular Expressions 101

Sponsors

Library entries

0
javascript

Host & Port & Path

support host port and path
Submitted by anonymous - a month ago
0
java

Mt940-61

Parse tag 61 of an mt940 statement
Submitted by anonymous - a month ago
0
javascript

Mask currency default

mask currency default
Submitted by Rafaella Cintra - a month ago
0
java

grade pattern

grade pattern for chinese school grade
Submitted by anonymous - a month ago
0
python

DD followed by Month in String

-
Submitted by anonymous - a month ago
0
python

EC2 Instance Type

Validates ec2 instance types as of 10/19/22
Submitted by anonymous - a month ago
0
python

Inf_lab2

Regular expressions for lab2
Submitted by anonymous - a month ago

Date Validator

Vote

0

Regular Expression
javascript

/
(?=..?(?<del>[/,.-]))(?<!\d)(?<d>31(?=.0?[13578]\D|30(?=.0?[13-9])|.1[02])|29(?=.0?2(?:.\d*(?:[02468][048]|[13579][26])|.-?[48]|(?!(\k<del>)))\b|.(?:0?[13-9]|1[012]))|[0-1]?[1-9]|2[0-8])(\k<del>)(?<m>0?[1-9]|1[0-2])(?:(\k<del>)(?<y>-?[1-9]\d*?))?(?!(\k<del>))\b
/
g

Description

Loading markdown...
Submitted by anonymous - 4 months ago