I need to search and replace multiple words in one pass of an input
stream or string. For example, given the input:
"The quick brown fox jumped over the lazy dog's back"
and given the replacements
quick -> slow
jump -> walk
I'd like to get the string
"The slow brown fox walked over the lazy dog's back."
I've done some Google searching and learned that the Aho-Corasick and
Commentz-Walter algorithms do this, but I can't find any Java
implementations on the net. These algorithms look time-consuming to
implement and test, and I don't want to go ahead and implement them if
I could just download an already working and debugged implementation.
Thank you.
---Chris
=========================
Good Fig - News for Christians
http://www.goodfig.org