I have the following regex: /[ML](\d+\.*\d*),/g
I also have a string that looks something like this:
‘M0,1.23L1,2343L123,23.23’
I basically want to have a regex, that returns [0,1,123] when matched with my string.
Basically I want to make sure, that I only get the first of the two numbers that follow a letter and are seperated by a comma.
Is there a nice way to do this?