How to empty a System.Collections.IEnumerable of Regular Expressions Matches

@Rakshit
you can re-initialize the variable before foreach as

variable = new List(of system.text.RegularExpressions.Match)

OR

variable = {}

1 Like