I have retrieve a string from an XML file which looks like this :
"[0, 30, -146, 0]$[-143, 30, -3, 0]" #[left, top, right, bottom]
(It is always the same format)
And i'm trying to extract both left values of both positions to have :
left1 = 0
left2 = -143
How can i do this please?
json.loads()on the splitted item to get a list and access the list's first item