I would think this should return "state,country" but it's returning "country"
System.out.println("city,state,country".replaceAll("(.*,)?", ""));
Why is it working this way, and how do I make it return "state,country". I want this answer as a regex.