View Single Post
Old 11-07-2015, 08:53 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
That is because I took a look at one error you made, and completely forgot to fix (or indeed notice) the other one. I assumed the only error was the "it doesn't find the date" one, didn't even notice there was a formatting error as well.
Since I am presenting myself as a help guru, that is rather embarrassing.

You need to escape the brackets surrounding the date, or else it tries to read that as another character set.
Code:
(?P<author>[^_]+) - (?P<title>.+) \[(?P<published>[0-9]+)\]





EDIT: In case you are interested, "unbalanced parentheses" -- the parser is dumb enough that it took a look at the character set:
Code:
(?P<published>[0-9
then saw
Code:
+)]
with no opening parenthesis anywhere in sight.

Last edited by eschwartz; 11-07-2015 at 08:58 PM.
eschwartz is offline   Reply With Quote