s="  afd [asd] [12 ] [a34]  [ -43 ]tt [+12]xxx"
Regex match should return [12, -43, 12]
re.findall(r'\[([+-]?\d+)]', s)
It doesn't work. I have no idea how to include whitespace
s="  afd [asd] [12 ] [a34]  [ -43 ]tt [+12]xxx"
Regex match should return [12, -43, 12]
re.findall(r'\[([+-]?\d+)]', s)
It doesn't work. I have no idea how to include whitespace
 
    
    