Quote:
Originally Posted by magphil
I found a regexp that works on another thread :
^((?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]+)
It's just weird that the other one, which worked for importing a huge number of books, just stopped working.
|
It didn't stop working. It will work for the same books it worked on before. It's just not a very flexible expression and it depends on the specific characters to be in the right place in each filename. The regex quoted above is much more tolerant of variations in the filename, such as double spaces around the hyphen instead of exactly a single space, etc.