Use regex to make test search configurable.