Quote:
Originally Posted by janrap
I have sorted my books in files like
author - title.epub
or
author - series nr - title.epub
is there a regulier expression which can import both file names correctly???
|
Someone else wrote it, but this has worked for me.
Code:
^((?P<author>([^\-_0-9]+)(?=\s*-\s*)(?!\s*-\s*[0-9.]+)|\b))(\s*-\s*)?((?P<series>[^0-9\-]+)(\s*-\s*)?(?P<series_index>[0-9.]+)\s*-\s*)?(?P<title>[^\-_0-9]+)