View Single Post
Old 08-05-2011, 09:18 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 Daigomi View Post
I am looking for a way for a way to sort the books as follows:

{isbn}.{Publisher}.{Still Publisher}.{Title}.{Ignore last two}.pdf

If someone could help me with a template for this, I'm sure I could figure out how to adapt it to other similar formats.
Try this:
Code:
(?P<isbn>.*?)\.(?P<publisher>.*?\..*?)\.(?P<title>.*)\..*?\..*?
It parses this:
12345X.Publisher1.Publisher2.Title1.Title2.Title3. Ignore1.Ignore2.pdf

When requesting these, you really should give several examples of the actual file names, not just what you consider to be the pattern. It's important to see the spaces, hyphens, periods,, brackets, etc. in the names. For example, it's not clear if your actual files have the name Title, or {Title} in them. I assumed it didn't have the curly brackets, but if it did, other options would have been available.
Starson17 is offline   Reply With Quote