RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 7
Title Test Details URI
Expression
([A-Za-z0-9]+:\/\/)?([a-zA-Z0-9]+(\.[a-zA-Z0-9]+)*)?(\/|(\/([A-Za-z0-9\:@!\$&'\(\}\*\+\-_,;=~\.]+|(%[A-F0-9]{2})+))*)(\?[A-Za-z0-9]+=[A-Za-z0-9]+(&[A-Za-z0-9]+=[A-Za-z0-9]+)*)?
Description
Relatively loose validation of a URI
Matches
http://www.somewebsite.com/~user/x/y/z/thing.page?a=1&b=2 | file:///WO/1/1/0056.jp2 | /WO/1/b
Non-Matches
Anything that is not a URI
Author Rating: Not yet rated. Adam Retter
Title Test Details XML Schema DateTime
Expression
-?[0-9]{4}-(((0(1|3|5|7|8)|1(0|2))-(0[1-9]|(1|2)[0-9]|3[0-1]))|((0(4|6|9)|11)-(0[1-9]|(1|2)[0-9]|30))|(02-(0[1-9]|(1|2)[0-9])))T([0-1][0-9]|2[0-4]):(0[0-9]|[1-5][0-9]):(0[0-9]|[1-5][0-9])(\.[0-999])?((\+|-)([0-1][0-9]|2[0-4]):(0[0-9]|[1-5][0-9])|Z)?
Description
Matches xs:dateTime values described in XML Schema 1.0. Handles correct days in each month. http://www.w3.org/TR/xmlschema-2/#dateTime
Matches
2012-01-31T10:00:00Z | 2012-02-28T10:00:00Z | 2012-02-29T10:00:00Z
Non-Matches
2012-02-30T10:00:00Z | 2012-01-32T10:00:00Z | 2012-04-31T10:00:00Z
Author Rating: Not yet rated. Adam Retter
Title Test Details XML Schema Date
Expression
-?[0-9]{4}-(((0(1|3|5|7|8)|1(0|2))-(0[1-9]|(1|2)[0-9]|3[0-1]))|((0(4|6|9)|11)-(0[1-9]|(1|2)[0-9]|30))|(02-(0[1-9]|(1|2)[0-9])))((\+|-)([0-1][0-9]|2[0-4]):(0[0-9]|[1-5][0-9])|Z)?
Description
Matches xs:date values described in XML Schema 1.0. Handles correct days in each month. http://www.w3.org/TR/xmlschema-2/#date
Matches
2012-01-3Z | 2012-02-28+01:00 | 2012-02-29-01:00
Non-Matches
2012-02-30T10:00:00Z | 2012-01-32T10:00:00Z | 2012-04-31T10:00:00Z
Author Rating: Not yet rated. Adam Retter
Title Test Details XML Schema Time
Expression
([0-1][0-9]|2[0-4]):(0[0-9]|[1-5][0-9]):(0[0-9]|[1-5][0-9])(\.[0-999])?((\+|-)([0-1][0-9]|2[0-4]):(0[0-9]|[1-5][0-9])|Z)?
Description
Matches xs:time values described in XML Schema 1.0. Handles correct days in each month. http://www.w3.org/TR/xmlschema-2/#time
Matches
10:00:00Z | 23:59:59.100+01:00 | 10:00:00-01:00
Non-Matches
25:00:00Z | 23:60:60.100+01:00 | 10:00:00-25:00
Author Rating: Not yet rated. Adam Retter
Title Test Details UK Date
Expression
(((0[1-9]|(1|2)[0-9]|3[0-1])\/(0(1|3|5|7|8)|1(0|2)))|((0[1-9]|(1|2)[0-9]|30)\/(0(4|6|9)|11))|((0[1-9]|(1|2)[0-9])\/02))\/[0-9]{4}
Description
UK Date Format, using '/' as the separator character. Handles correct days in each month.
Matches
01/01/2013 | 30/04/2013 | 29/01/2013
Non-Matches
32/01/2013 | 31/04/2013 | 30/02/2013
Author Rating: Not yet rated. Adam Retter
Title Test Details UUID version 4
Expression
[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}
Description
Matches a Version 4 UUID as described here http://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29
Matches
e9257dd5-d221-4293-88c3-93f7d3fada4f | dd536276-4483-4c83-9901-2463f78c81cc | b0a59123-bf86-4047-9760-8c968c6b52d7
Non-Matches
e9257dd5-d221-1293-88c3-93f7d3fada4f | dd536276-4483-4c83-7901-2463f78c81cc | b0a59123-bf86-2047-9760-5c968c6b52d7
Author Rating: Not yet rated. Adam Retter
Title Test Details UUID version 3
Expression
[a-f0-9]{8}-[a-f0-9]{4}-3[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}
Description
Matches a Version 3 UUID as described here http://en.wikipedia.org/wiki/Uuid#Version_3_.28MD5_hash.29
Matches
e9257dd5-d221-3293-88c3-93f7d3fada4f | dd536276-4483-3c83-9901-2463f78c81cc | b0a59123-bf86-3047-9760-8c968c6b52d7
Non-Matches
e9257dd5-d221-4293-88c3-93f7d3fada4f | dd536276-4483-4c83-9901-2463f78c81cc | b0a59123-bf86-4047-9760-8c968c6b52d7
Author Rating: Not yet rated. Adam Retter
   Displaying page 1 of 1 pages; Items 1 to 7

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials