Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-04-2010, 04:51 PM   #1
jomaweb
Connoisseur
jomaweb is on a distinguished road
 
Posts: 79
Karma: 50
Join Date: Jan 2010
Device: Kindle DX
Regular Expression for filenames with commas

Hi all

I got a bunch of eBooks with this filename structure:

Surname, Firstname - book Title

When adding to Calibre library, using the default Regular Expression

(?P<author>[^_]+) - (?P<title>.+)

author appears with a strange symbol (pipe?) between name and surname because of the comma.

I'm not a computer geek, so if anyone can tell me how to fix the regular expression to add this kind of files I'll appreciate it.

A solution for bulk repairing the previously hundred books addedd is possible too? Fixing one by one is a lot of time consuming

Thanks in advance

Last edited by jomaweb; 02-04-2010 at 05:06 PM.
jomaweb is offline   Reply With Quote
Old 02-04-2010, 05:26 PM   #2
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 jomaweb View Post
Hi all

I got a bunch of eBooks with this filename structure:

Surname, Firstname - book Title

When adding to Calibre library, using the default Regular Expression

(?P<author>[^_]+) - (?P<title>.+)

author appears with a strange symbol (pipe?) between name and surname because of the comma.

I'm not a computer geek, so if anyone can tell me how to fix the regular expression to add this kind of files I'll appreciate it.

A solution for bulk repairing the previously hundred books addedd is possible too? Fixing one by one is a lot of time consuming

Thanks in advance
In Preferences, under Add/Save, select the "Swap author firstname and lastname" checkbox. It will split and swap at the comma. The regex you are using will work (but not for series names and numbers). Mass fixing isn't easy. For a few hundred, it may be easiest to simply remove and re-add them.
Starson17 is offline   Reply With Quote
Old 02-04-2010, 06:27 PM   #3
jomaweb
Connoisseur
jomaweb is on a distinguished road
 
Posts: 79
Karma: 50
Join Date: Jan 2010
Device: Kindle DX
But it's not possible to readd them because I've deleted the original files.

my bad
jomaweb is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular Expression Help Azhad Calibre 86 09-27-2011 03:37 PM
Regular Expression Help smartmart Calibre 5 10-17-2010 06:19 AM
Need Help Creating a Regular Expression Worm Calibre 9 08-18-2010 02:20 PM
Regular Expression Help Needed dloyer4 Calibre 1 07-25-2010 11:37 PM
Help with the regular expression Dysonco Calibre 9 03-22-2010 11:45 PM


All times are GMT -4. The time now is 10:17 PM.


MobileRead.com is a privately owned, operated and funded community.