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:
Post Comments (Atom)
Vijay are you interested in Contract opportunities in WI?
ReplyDeletePlease send me an email
Amyk@yorksolutions.net