// Set up to parse the specified expression
String pattern = null;
StreamTokenizer st =
new StreamTokenizer(new StringReader(expr));
st.eolIsSignificant(false);
st.lowerCaseMode(false);
st.slashSlashComments(false);
st.slashStarComments(false);
st.wordChars(0x00, 0xff);
st.quoteChar('\'');
st.quoteChar('"');