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 1
Title Test Details Pattern Title
Expression
^[-]?P(?!$)(?:\d+Y)?(?:\d+M)?(?:\d+D)?(?:T(?!$)(?:\d+H)?(?:\d+M)?(?:\d+(?:\.\d+)?S)?)?$
Description
Matches the XSD schema duration built in type as defined by http://www.w3.org/TR/xmlschema-2/#duration
Matches
P12Y03M12D | -P4343D | -PT343H23M2323.232S
Non-Matches
34Y3434M23D | P2323DT
Author Rating: The rating for this expression. Mike Cromwell
   Displaying page 1 of 1 pages; Items 1 to 1

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