Actually, I have a followup question. I have many books currently named such that the tags are included in their names. The tags are always included in curly braces. e.g. consider the previous book I had mentioned.
Rethink ~ Cut Costs Boost Innovation [Ric Merrifield, 2009].pdf
If there were tags for this book, the name of the book would be as follows:
Rethink ~ Cut Costs Boost Innovation [Ric Merrifield, 2009]{Innovation, Cost Control}.pdf
How would the regular expression be changed to import the tags as well? This would save me a huge amount of work to classify articles and books. Thanks in advance.
BTW, I tried the following:
(?P<title>[^_-]+) \[(?P<author>[^_0-9-]*), (?P<published>[0-9]*)] \{(?P<tags>[^_0-9-]*)}
but that just imports the entire filename as title, which does not help me at all! I also used <tag> for tag. Any pointers?
Last edited by jevonbrady; 06-20-2011 at 08:04 PM.
Reason: adding details
|