I have a string as follows:
(((154 -10.45, 154 -10, 154.315452 -10, 154.315452 -10.45, 154.0117846 -10.4498789, 154 -10.45)), ((154 -11, 154 -10.9383334, 154.6 -10.9383334, 154.6 -11, 154 -11)))
What I'm wanting to do is to implement an expression which will firstly match the outer brackets, using the comma as the separator thus producing:
154 -10.45, 154 -10, 154.315452 -10, 154.315452 -10.45, 154.0117846 -10.4498789, 154 -10.45
and
154 -11, 154 -10.9383334, 154.6 -10.9383334, 154.6 -11, 154 -11
I'm using the following expression \((.*?)\),*
but it still returns the brackets in the matches. I can't quite figure out the pattern needed to match on the last start bracket and first end bracket.