30 January 2012

Regular Expressions

Regular expressions can be remarkably useful, but they can also be quite fickle. I use regular expressions in my code that scrapes the John Pizzarelli site to produce the Radio Deluxe RSS feed. There was one extra space in the HTML for the current episode that my pattern wasn't expecting, so that's why the 7 January episode hasn't been in the feed. It's fixed now.

1 comment:

W G Pollock said...

Another regular expression update today. HTML tags that were present in earlier pages were missing for the 2/25 episode. Fixed now.