View Single Post
Old 11-13-2010, 09:10 AM   #18
frulex
Junior Member
frulex began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2010
Device: none
Quote:
Originally Posted by Starson17 View Post
Which regex worked for you? This one:
(?P<isbn>.+)
or this one:
(?P<isbn>.+?)\.(?P<title>.+)
?
I tested the first one and couldn't get it to pull ISBN only. The second one works fine for books with a title separated from ISBN by dot/period/decimal. I tested on my machine running Calibre from source, and right now the source is heavily modified. I vaguely recall getting an ISBN regex to work before, but wasn't sure if it also pulled title or author. Can you get the first regex to grab the ISBN from frulex's sample filenames?
OK, finally it's working (the first one) perfectly, I tested it on a couple of books. The only problem is that I already added a lot of books while using the second one, so I will have to delete all these books and add them again using the first one. But, thanks very much again to everyone, it's been really helpful...
frulex is offline   Reply With Quote