Tuesday, November 2, 2010

String

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);

1 comment:

  1. Vijay are you interested in Contract opportunities in WI?

    Please send me an email
    Amyk@yorksolutions.net

    ReplyDelete