Importing expression title 'by' author help?
Concerning Calibe 'regular expressions', I have again run into a dilemma: when trying to use this one importing books
from the manual:
A regular expression that works here would be [a-zA-Z]+: (?P<title>.+) by (?P<author>.+).
the expression seems to work on one test
Academic Viewpoint by James Gunn.txt
Bicentennial Man, The by Isaac Asimov.txt
Breath's a Ware That Will Not Keep by Thomas F. Monteleone.txt
Crowd of Shadows, A by Charles L. Grant.txt
Houston, Houston Do You Read by James Tiptree Jr.txt
In The Bowl by John Varley.txt
Introduction to Nebula Award Stories 12.txt
Tricentennial by Joe Haldeman.txt
but when run against several folders of files it usually misses the author!
Any clues?
scott
|