Iteration on regex for comment replacement