corrected regex parsing group using capture groups