Regular Expressions 101

Sponsors

Library entries

1
java

phone number middle number parsing

middle number parsing regex
Submitted by anonymous - a day ago
0
java

Verify email

Regex for email
Submitted by anonymous - 3 days ago
1
javascript

中文匹配

本示例启用了多行匹配 m
Submitted by yang - 3 days ago
0
javascript

cuts amazon url

with a url of aws cuts the url
Submitted by d3w3r - 7 days ago
0
python

foengz1

htmltag
Submitted by Foengz - 8 days ago
0
dotnet

IP Table Parse IPID

Match 1 is the IPID
Submitted by Tres Little - 8 days ago
0
javascript

regex text inside html tag

regex
Submitted by anonymous - 9 days ago
0
pcre

https://regex101.com/r/VrZHR8/1

https://regex101.com/r/VrZHR8/1
Submitted by anonymous - 10 days ago
0
javascript

NPM Module ID

Match import
Submitted by anonymous - 10 days 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 - a month ago