[Xml-compile] Re: Xml-compile Digest, Vol 25, Issue 9

Robin V. robinsp at gmail.com
Sun Apr 25 15:48:13 GMT 2010


I've modified "Compile/Schema/BuiltInTypes.pm" lines 364 and 373 and
PT5M is now accepted as a valid duration. You're correction is
probably the good one :).

Best regards,
Robin


On Sun, Apr 25, 2010 at 2:42 PM, Titi Ala'ilima <titi at leadkarma.com> wrote:
> On Apr 25, 2010, at 8:00 AM, xml-compile-request at lists.scsys.co.uk wrote:
>
>> I have no idea (yet) why this string does not match
>>
>>  'PT5M' =~ m/^\-?P(?:\d+Y)?(?:\d+M)?(?:\d+D)?
>>     (?:T(?:\d+H)?(?:\d+M)?(?:\d+(?:\.\d+)?)S)?$/x
>>
>> anyone?
>
> The parens are messed up at the end, so an S would be required at the end of
> any time phrases. This is probably what you want:
>
>> m/^\-?P(?:\d+Y)?(?:\d+M)?(?:\d+D)?
>>     (?:T(?:\d+H)?(?:\d+M)?(?:\d+(?:\.\d+)?S)?)?$/x
>
> Titi
>
> _______________________________________________
> Xml-compile mailing list
> Xml-compile at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile
>



More information about the Xml-compile mailing list