Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


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 >>

Thumbnail of Dave Morriss
Hosted by Dave Morriss on 2013-07-15 is flagged as Explicit and is released under a CC-BY-SA license.
Perl, regular expression, ISO8601 time duration. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr1291

Listen in ogg, spx, or mp3 format. Play now:

Duration: 01:20:32

general.

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://gitlab.com/davmo/hprmisc/blob/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 https://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

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?