How do I get the content after the last comma in a string using a regular expression?
Example:
abcd,fg;ijkl, cas
The output should
What about the following:
String a = "abcd,fg;ijkl, cas"; String[] result = a.split(",[ ]*"); String expectedResult = result[result.length - 1]);