Quote:
Originally Posted by nitrogun
OK, that allows the test to be read, but the result of pasting in
Anders, Ken J - Lethal Exposure.pdf
|
I don't know how to write these expressions, but I have one that someone else wrote that handles the above fine.
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]+)
See attached for the tests with a series included.
Again, I didn't write this, but someone on this board did.