Regular Expressions 101

Library entries

0
pcre

111

no description available
Submitted by anonymous - 8 years ago
0
pcre

Beginning of word

When looking for day, Sunday should not be matched.
Submitted by Ben - 8 years ago
0
pcre

replicated pageContent id within a div

no description available
Submitted by anonymous - 8 years ago
0
pcre

c

no description available
Submitted by anonymous - 8 years ago
0
pcre

(\s)(\d{9})(\s)</

no description available
Submitted by anonymous - 8 years ago
0
javascript

IBAN

Italian IBAN
Submitted by Italo - 8 years ago
0
javascript

two matches with pipe

no description available
Submitted by anonymous - 8 years ago
0
javascript

token

replace token like [foo:bar:ba zz]
Submitted by anonymous - 8 years ago
0
pcre

URL validation with http/https

URL validation with http/https
Submitted by Gunjan - 8 years ago

Date Validation

Vote

0

Regular Expression
javascript

/
^(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[1,3-9]|1[0-2])(\/?|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:(?:0?2)(\/?|-|\.)(?:29)\3(?:(?:(?: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])\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$
/
gm

Description

Loading markdown...
Submitted by Ashish - 8 years ago