Add search functionality with regex