View Single Post
Old 07-01-2013, 11:14 AM   #6
parkher
Evangelist
parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.parkher ought to be getting tired of karma fortunes by now.
 
Posts: 467
Karma: 369018
Join Date: Nov 2010
Device: BL Alita/Mimas/Ares, OB Note2/Note, KA One/H2O/HD, S PRS T2/T1, PB 902
Thanks
In other words, I need to copy what I see before extracting metadata from a file.
It would be better if it was just shown without overriting (similarly as when gettnig from the internet) - then I could copy only what I need and cancel the rest.

Anyway, because I now realized that the initial file name is not preserved, I want to save all the information from the end of the file name, not just the publisher, such as version numbers etc.
So I modified the regular expression, it just takes everything (including multiple braces and or parentheses) and copies to the "publisher" field, which later can be cleaned up manually, if so desired.

(?P<author>[^_-]+) -?\s*(\[|\()?\s*(?P<series>[^_0-9\[\(-]*)(?P<series_index>[0-9]*)\s*(\]|\))?\s*-\s*(?P<title>[^_\[\(]+)\s*(?P<publisher>[^$]+)\s* ?
parkher is offline   Reply With Quote