| TextFilter that substitutes content using a JDK 1.4 regular expression.
Example
This will substitute 'Google:Blah' for a link to a google search.
HTMLProcessor processor = new HTMLProcessor(in, out);
processor.addTextFilter(new RegexReplacementTextFilter("Google:([a-zA-Z]+)", "$1"));
// add more TextFilters and TagRules
processor.process();
author: Joe Walnes |