make regex run properly