in reply to Extraction of List of Coordinates

Your regex is ok, but to get a proper rectangle, you need to test your coordinates:
if ($1 > $3) { $num1x = $3; $num2x = $1; { else { $num1x = $1; $num2x = $3; } # same for y coords

-Mark