Note, javadoc for find:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Matcher.html#find()
If you want your expression to be matches exactly begin it with a $
and end it with a ^. This will force the entire string top be
matched.
eg, String pat = "^/([a-zA-Z]*)(\\?.*)?$";
Cheers,
Paul.
--
Cheers,
Paul.