Extract test from polygon2rect
Extract string from "points=\"" to "