Simple Pattern Matcher for Java