Pattern patt = Pattern.compile("^'(.*)'$"); // could be stored in a static final field.
Matcher matcher = patt.matcher(theString);
boolean matches = matcher.matches();
updateString = matcher.group(1);
updateString = theString.substring(1, theString.length() - 1);
Tuesday, November 2, 2010
Subscribe to:
Posts (Atom)