I am trying to find and capture all numbers inside ( and ) separately in my data, ignoring the rest of the numbers.
My data looks like this
21 [42] (12) 19 25 [44] (25 26 27) 17 (14 3) 8 1 6 (19)
So I want to find matches for 12
, 25
, 26
, 27
, 14
, 3
and 19
I tried doing \((\d+)\)*
but this only gives me 12
, 25
, 14
, 19
Any help is appreciated.