Allow Lua regexs in search, and check for bad ones