virgins...@vfemail.net wrote:
> > From: kevin_d_cl...@comcast.net (Kevin D. Clark) Date: 30 Apr 2009
> > 12:02:19 -0400
> >> I want to search a text file for a few (alphabetic) words which
> >> must be "near" each other, but not necessarily on the same line.
> >> "Near" could be defined however you like... within a certain
> >> number of words from each other, a certain number of charecters
> >> from each other, or some similar constraint.

I believe this is often called a "proximity search." I did write some 
code to do it three decades ago in Lisp. I don't recollect where I 
gleaned the algorithm though.

_______________________________________________
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Reply via email to