I have a particular string like below
*WTY: but the light of the dining room suddenly turn off .
%mor: conj|but det|the n|light prep|of det|the adj|dining n|room adv|suddenly v|turn adv|off .
%snd: <00:14:74><00:25:53>
%WTY: {and} rpl but {suddenly} rpl (0.43) {the} * (1.07) {the light (0.78) suddenly turn off and} # (1.24) the light of the dining room suddenly turn off . err_m_s err_m_l ::: |
I want to extract the numbers inside the round brackets () and count the sum of all these numbers. I have tried the following RegEx for extracting the number but it is not returning any result.
str.match(/\((\d+)\)/)