* John Siracusa ([EMAIL PROTECTED]) [14 Jul 2003 01:53]:

[...]
> See above. It's like 4 or 5 regexes for
> DateTime::Format::Simple. I know, because I have a
> DateTime wrapper that parses these formats, it it covers
> about *99.9%* of the date strings I encounter, including
> user input in web forms and such.

Sounds much like how I use DateTime::Format::HTTP. It's a
wrapper around HTTP::Date which has 4 or 5 regexen to parse
quite a few formats.

Remember: part of the point of having the various format
modules is that you can pick'n'mix. You could conceivably
wrap a number of them in Builder to make your own parser
that recognises the sorts of dates you come across. I mostly
come across HTTP, W3CDTF and RFC2822 dates so I'm all set =)

However, I'm interested in seeing your regexen to see if you
parse anything that might be of use to me. Would you like to
share?


cheers,
-- 
Iain.
<http://iain.truskett.id.au/>

Reply via email to