What is the regular expression to capture the following groups in the given string using JAVA:
hey,soul,345
with the constraint that the first word may include a comma as well. I have the following regex:
(.*),(.*),(.*)
but I essentially want to match the last 3 commas only.