Quote:
Originally Posted by Daigomi
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.