functioning search server with regex