import revar = 'u16 arrayName_1[8][7]'index = re.findall(r'\[(.*?)\]', var)print(index)
Standard input is empty
['8', '7']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!