public class Matcher
{
    public Matcher (Rule[] rules, boolean debug)
    {
        _rules = rules;
        _debug = debug;
    }

    public Message[] matchRule (int ruleNumber, Message[] messages)
    {
        Rule ruleToMatch = _rules[ruleNumber];

        return null;
    }

    private String getMatchingString (Rule theRule)
    {
        return null;
    }

    private Rule[] _rules;
    private boolean _debug;
}
@@ -330,35 +330,204 @@
 Rule
-)%0A    %7B%0A        return null
+, String current)%0A    %7B%0A        String str = current;%0A%0A        if (theRule.getMatch() == Rule.NO_MATCH)%0A        %7B%0A%0A        %7D%0A        else%0A            str += theRule.getMatch();%0A%0A        return str
 ;%0A  

Update Matcher.java