repaired exclude regexp