htmlProcessor.addTextFilter(new RegexReplacementTextFilter("JIRA:(XSTR\\-[0-9]+)", "<a href=\"http:
htmlProcessor.addTextFilter(new RegexReplacementTextFilter("JIRA:(PTOYS\\-[0-9]+)", "<a href=\"http:
    private void extractContentFromHTML(char[] rawHTML) throws IOException {        // where to dump properties extracted from the page        properties = new Properties();        PageBuilder pageBuilder = new PageBuilder() {            public void addProperty(String key, String value) {                properties.setProperty(key, value);            }        };        // buffers to hold head and body content        CharArray headBuffer = new CharArray(64);        CharArray bodyBuffer = new CharArray(4096);        // setup rules for html processor        HTMLProcessor htmlProcessor = new HTMLProcessor(rawHTML, bodyBuffer);        htmlProcessor.addRule(new BodyTagRule(pageBuilder, bodyBuffer));        htmlProcessor.addRule(new HeadExtractingRule(headBuffer));        htmlProcessor.addRule(new TitleExtractingRule(pageBuilder));        htmlProcessor.addRule(new MetaTagRule(pageBuilder));        htmlProcessor.addRule(new LinkExtractingRule());        htmlProcessor.addRule(new AddFirstChildClassToHeader());        // turn JIRA:XSTR-123 snippets into links        htmlProcessor.addTextFilter(new RegexReplacementTextFilter("JIRA:(XSTR\\-[0-9]+)", "<a href=\"http://jira.codehaus.org/browse/$1\">$1</a>"));	        // go!        htmlProcessor.process();        this.head = headBuffer.toString();        this.body = bodyBuffer.toString();    }