View Single Post
Old 02-10-2014, 01:56 PM   #1
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
Removing "and" from author split

The default is to split authors on the word "and" which is causing havoc with the authors in my Calibre db. I saw the tweak to fix this, but it is a regex expression and I'm not exactly sure how to tweak it.

Here is the default:

authors_split_regex = '(?i),?\\s+(and|with)\\s+'

Do I simply remove the word "and" so it looks like this? ...

authors_split_regex = '(?i),?\\s+(|with)\\s+'

I know regex can be finicky and I don't want to break any other part of the expression by simply deleting the word.

--Pat
PatNY is offline   Reply With Quote