// no need to fix these for a SubString match-using dictionary
//String fixed = fixVBProWildcards(trimmed);
try {
Pattern regexp = rengine.makeRegexp(trimmed);
PatternNode pattern =
new PatternNodeImpl(trimmed, null, regexp);
dict.addPattern(pattern, cat);
} catch (DuplicateException de){
errors.add(new BadPattern(lineNumber, trimmed, true));
} catch (Exception re) {
errors.add(new BadPattern(lineNumber, trimmed, false));