Regular Expressions 101

Sponsors

Library entries

1
python

Test

test
Submitted by test - 7 years ago
1
python

java

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

HH:MM:SS

Validates 00:00:00 to 23:59:59
Submitted by anonymous - 7 years ago
1
javascript

rstp

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

URL matching

no description available
Submitted by San - 7 years ago
1
javascript

#tag all languages

no description available
Submitted by Farhad - 7 years ago
8
python

repeat group match

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

url

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

Match HTTP error code

no description available
Submitted by anonymous - 7 years ago

Duration with mandatory 'm'

Vote

1

Regular Expression
javascript

/
^\/?[+-]?P?([0-9]+[Yy])?([0-9]+M)?([0-9]+[Dd])?[Tt]?([0-9]+[Hh])?([0-9]+m|(?:[0-9]+m?(?![0-9]+[Ss])))?([0-9]+[Ss])?$
/

Description

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