Clear Ienumerable<Match> in a for each loop

@Cristian_Ionita

Can you refer to the below thread? Hope it helps.