Does anybody know if there is a solid library based method to achieve the following.
Say I have the string
\"name1, name2, name3, name4\" >
\"name1, name2, name3, name4\"
Pattern pattern = Pattern.compile(", *"); Matcher matcher = pattern.matcher(inputString); if (matcher.find()) { string1 = inputString.substring(0, matcher.start()); string2 = inputString.substring(matcher.end()); }