View Single Post
Old 06-21-2011, 10:16 AM   #7
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jevonbrady View Post
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?
You can't directly import into the tags field. The work-around is to import them into another field and then do a search and replace to move them into tags.
Starson17 is offline   Reply With Quote