Fix search result regexp to work correctly even when only one result is returned