For searching text, try Google on "Boyer Moore". They made up a neat algorithm that I found kinda fun to implement in Pascal lo these many years ago. Here's a cool animated demo:
http://www.blarg.com/~doyle/bmi.html [ June 03, 2003: Message edited by: Stan James ]