using regex to make feature pass