Iterate through Match Collection

@agathiyanv
Kindy shares the sample input and expected output. It helps us to provide you with a better solution for you.