using regex to determine if searching for ID or name; fixes #45