Site Map - skip to main content - dyslexic font - mobile - text - print

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


hpr1291 :: Parsing an ISO8601 formatted duration field with Perl

A step-by-step explanation of writing a regular expression in Perl to parse an ISO8601 time duration

<< First, < Previous, Latest >>

Host Image
Hosted by Dave Morriss on 2013-07-15 is flagged as Explicit and is released under a CC-BY-SA license.
Listen in ogg, spx, or mp3 format. | Comments (0)

Ken recently asked Dave for help with a Perl regular expression for parsing ISO8601 time durations. As a consequence a Perl script was written, which is available at https://gitorious.org/hprmisc/hprmisc/blobs/master/parse_8601_duration.

In this show Ken and Dave discuss this script at some (considerable) length. Keen listeners might want to view the script as they listen. Detailed show notes describing how to put together a Perl regular expression are also available at http://hackerpublicradio.org/eps/hpr1291/.

Unfortunately some of the line numbers in the script referred to in the show are now incorrect since Dave could not stop himself updating it.

For detailed show notes on how Dave created the script see:


Comments

Subscribe to the comments RSS feed.

Leave Comment

Powered by Comment Script