Quote:
Originally Posted by PatrickNew
How does your current script work? Seems to me that regular expressions might be the tool you need. Just google up on them and you'll find all you need.
|
Currently works by regular expressions. About 60 of them all ranked. I even have check against the current date. (ie if the ad says Sun) is that this Sunday or last Sunday. Or Sun 6. There is a high degree of probability that there is only one or two Sun 6th in the given year. (At least within the range of a few months.)
The problem is I always get these ads where there is a slight deviation to the pattern. (not to mention spelling mistakes)
(ie Orangeville, 57 Broadway vs Orangeville., 57th Broadway. I have to include the [.,]{1,2} and [t]?[h]? and also filter in case someone has squished the number to the street name, which starts with th.)
Hence my question. If anyone knows of software which currently does the job. So I'm not re-inventing the wheel.