Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-04-2010, 03:51 PM   #1
jomaweb
Connoisseur
jomaweb is on a distinguished road
 
Posts: 81
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 04:06 PM.
jomaweb is offline   Reply With Quote
Old 02-04-2010, 04: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
Advert
Old 02-04-2010, 05:27 PM   #3
jomaweb
Connoisseur
jomaweb is on a distinguished road
 
Posts: 81
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


Forum Jump

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


All times are GMT -4. The time now is 12:07 AM.


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