Regular Expressions 101

Sponsors

Library entries

2
pcre

Extract Metadata

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

html font to bbcode

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

Matches first word

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

paren strip test

paren strip test
Submitted by marie bacuno - 7 years ago
2
pcre

catch options

catch options
Submitted by Marek R - 7 years ago
2
pcre

Dice Regex with Modifier

no description available
Submitted by derek robati - 7 years ago
2
pcre

BZWBK24 SMS Code

no description available
Submitted by maniekq - 7 years ago
2
pcre

PL Phone number

PL Phone number
Submitted by Dawid - 7 years ago

ISO 8601 date

Vote

3

Regular Expression
pcre

/
^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$
/
mgi

Description

Loading markdown...
Submitted by anonymous - 7 years ago