View Single Post
Old 08-01-2011, 12:33 PM   #1
thevoiceofcheese
Junior Member
thevoiceofcheese began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2011
Device: none
regex help please

i just discovered calibre and now i try to work into it, but regular expressions are a obstacle i can't break through until now. i have no clue about programming whatsoever and after hours of trying i give up. i have a huge collection of mainly scientific books, the filenames are in this format: <author> <year> <tiltle>, e.g. "tabachnick 2007 using multivariate statistics.pdf". what i want to do is to extract metadata from filenames. i used this regex: (?P<author>[^_]+) (?P<published>\d\d\d\d) (?P<title>.+). it correctly extracts author and title , but in the published-field it extracts 2007-07-31 any ideas what is wrong with the regex? thanks in advance!
thevoiceofcheese is offline   Reply With Quote