added regex to change regex wildcards to sql in search term