Answers.Body: <p>I wouldn't recommend this, to be honest. The general naming convention that Calibre expects as default uses comma to delimit author's first and last name, i.e. either <code>Jane Doe</code> or <code>Doe, Jane</code>. If you fiddle with the splitting regex and then try to import a book with this name pattern, you'll get into trouble - and I don't know if this tweak influences just newly imported books or all books within your library.</p>
  
  <p>But if you want to experiment, this regular expression should work: <code>(?i),?\\s*(and|with|,)\\s+</code>. I would try this on a test library first, though, if I were you. </p>
  
  <p>In general, I highly recommend using an online regex tester (with Python regex flavor) such as <a href="https://regex101.com/" rel="nofollow noreferrer">this one</a> for working with Calibre, it saved me a lot of headaches in the past.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-28T17:42:19.620Z
Answers.LastActivityDate: 2019-04-28T17:42:19.620Z
Answers.UserDisplayName: corvidism
Body: <p>All of my ebooks have a filename of the form</p>
  
  <pre><code>author1, author2, ... - [series seriesindex - ] title.*
  </code></pre>
  
  <p>and I have set up Calibre to read metadata from the filename.</p>
  
  <p>Calibre, however, does not seem to split on ", ". How do I modify the regular expression under "Preferences"->"Tweaks" -> "Splitting multiple author names" (authors_split_regex) to add ", " as a possible separator?</p>
  
Tags: <calibre>
Title: Calibre: Adding ", " as a separator for splitting the authors string
UserDisplayName: Bhuvanesh
ThreadText: # Calibre: Adding ", " as a separator for splitting the authors string
  
  (Asked by: username_0 on 2019-04-28)
  
  All of my ebooks have a filename of the form
  
  ```
  author1, author2, ... - [series seriesindex - ] title.*
  
  ```
  
  and I have set up Calibre to read metadata from the filename.
  
  Calibre, however, does not seem to split on ", ". How do I modify the regular expression under "Preferences"->"Tweaks" -> "Splitting multiple author names" (authors\_split\_regex) to add ", " as a possible separator?
  
  **Tags:** calibre
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-04-28. Score: 1 | Accepted answer
  
  I wouldn't recommend this, to be honest. The general naming convention that Calibre expects as default uses comma to delimit author's first and last name, i.e. either `Jane Doe` or `Doe, Jane`. If you fiddle with the splitting regex and then try to import a book with this name pattern, you'll get into trouble - and I don't know if this tweak influences just newly imported books or all books within your library.
  
  But if you want to experiment, this regular expression should work: `(?i),?\\s*(and|with|,)\\s+`. I would try this on a test library first, though, if I were you.
  
  In general, I highly recommend using an online regex tester (with Python regex flavor) such as [this one](https://regex101.com/) for working with Calibre, it saved me a lot of headaches in the past.
  
  
  ---
  
  