I have a string like this:
(63, 166) - (576, 366)
I need to extract the values out so that I have:
x1 = 63
y1 = 166
x2 = 576
y2 = 366
I can easily use the split()
function and save the results in temporary arrays and then then further split them etc, but that'll be ugly, I was wondering if there's a slick way to do it? I'm using python.