View Single Post
Old 05-26-2009, 03:49 PM   #9
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by Sabardeyn View Post
For my purposes I would prefer a regex that resolves all of the following correctly:
  • John D. Smith - The Perfect Book.pdf
  • John D. Smith - Bibliographic Perfection - The Perfect Book.pdf
  • John D. Smith - Bibliographic Perfection 1 - The Perfect Book.pdf
  • John D. Smith - Bibliographic Perfection 189 - The Perfect Book.pdf
  • John D. Smith - Bibliographic Perfection 1 - The Perfect Book - A Bedtime Story.pdf
  • John D. Smith-Jones & Somebody Else - Bibliographic Perfection 1 - The Perfect Book - A Bedtime Story.pdf
These are easily done using the same regular expression.


Quote:
Originally Posted by Sabardeyn View Post
  • John D. Smith - Jones - Bibliographic Perfection 1 - The Perfect Book - A Bedtime Story.pdf
This one's bit of a stretch. You can play with the greediness to get this one to play nice. Don't have Calibre on this PC but I can play with it when I get home.
ilovejedd is offline   Reply With Quote