Use expect syntax for search feature