I am using the following code to split `(<x-coordinate>,<y-coordinate>)`:

```
String startPointStr = InputPattern.parsePoint(args.get(0));

String[] startCoords = startPointStr.substring(1, startPointStr.length() - 1).split(",");
Point startPoint = new Point(Integer.parseInt(startCoords[0]), Integer.parseInt(startCoords[1]));

```

Now, I want to modify the code so it also works for `(<x-coordinate>,<y-coordinate>),(<x-coordinate>,<y-coordinate>)`.
At the end I need two Points with two values each.

How can this be done?