Regular Expressions 101

Sponsors

Library entries

2
javascript

standard 16 columns hexdump

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

UK TEL

UK Telephone Number REGEX no () and no spaces
Submitted by \JOLLY - 7 years ago
2
javascript

Vimeo Video ID

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

youtube link + id + <a>

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

SSN

no description available
Submitted by anonymous - 7 years ago
2
python

postgesql

no description available
Submitted by anonymous - 7 years ago
2
python

calibre book parse

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

anyword plus word

no description available
Submitted by 7 HJ - 7 years ago
2
javascript

URI without Trailing Slash

no description available
Submitted by anonymous - 7 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