fixed regex to remove commented lines