Another idea for new rule: Don't do new Regex.Match in a loop: rather capture let myRegex = Regex("...") and then loop your myRegex.Match