Regular Expressions 101

Sponsors

Library entries

2
javascript

get href

gets value of href
Submitted by me - 6 years ago
2
pcre

Separating Server and Domain from FQDN

no description available
Submitted by Awan - 6 years ago
2
pcre

fiddler raw to php array

no description available
Submitted by anonymous - 6 years ago
2
javascript

URL with Port

no description available
Submitted by rkl - 6 years ago
2
pcre

Course GUID

no description available
Submitted by anonymous - 6 years ago
2
pcre

get Youtube & Vimeo id

grab youtube & vimeo id
Submitted by mi-ca.ch - 6 years ago

Date - Extract & Validate - Fully tested - Format YYYY-MM-DD (dynamic parts separator / can use a different separator)

Vote

2

Regular Expression
javascript

/
(?<=\D|^)(?<year>\d{4})(?<sep>[^\w\s])(?<month>1[0-2]|0[1-9])\k<sep>(?<day>0[1-9]|[12][0-9]|(?<=11\k<sep>|[^1][4-9]\k<sep>)30|(?<=1[02]\k<sep>|[^1][13578]\k<sep>)3[01])(?=\D|$)
/
gm

Description

Loading markdown...
Submitted by Elie Grenon (DrunkenPoney) <elie.grenon.1@gmail.com> - 2 years ago