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
Only one space:
String[] aux = theInputString.split(",\\s"); string result = aux[aux.length-1];
0 to n spaces:
String[] aux = theInputString.split(",\\s*"); string result = aux[aux.length-1];