in reply to Re^2: not getting desired output
in thread not getting desired output

Maybe \d+ is too restrictive? If you can have negative numbers, change it to -?\d+