pre-compile LIKE regex