pattern = compiler.compile(patternP);
} catch(MalformedPatternException e) {
System.err.println("RegExp.main...: Bad pattern: `" + e.getMessage() + "�.");
//@@@ System.exit(1);
//@@@ Make this cleaner some day.
throw new ProgrammerException("RegExp.main...: Bad pattern: `" + e.getMessage() + "�.");
}
// Create a PatternMatcherInput instance to keep track of the position
// where the last match finished, so that the next match search will
// start from there. You always create a PatternMatcherInput instance