Skip to content

Instantly share code, notes, and snippets.

@karstengresch
Created December 16, 2020 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karstengresch/96e4a528e00099dc391675a72e4e38df to your computer and use it in GitHub Desktop.
Save karstengresch/96e4a528e00099dc391675a72e4e38df to your computer and use it in GitHub Desktop.
Calibre Import RegEx for Files following the naming convention (<author_last_name>, <author_first_name>)* - <title>
^(?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b)(\s*-\s*)?(?P<title>([^\-_\[\(]+))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment