//+
String patt = "Q[^u]\\d+\\.";
RE r = new RE(patt);
String line = "Order QT300. Now!";
if (r.match(line)) {
System.out.println(patt + " matches \"" +
line.substring(r.getParenStart(0), r.getParenEnd(0)) +
"\" in \"" + line + "\"");
} else {
System.out.println("NO MATCH");
}