Allow patterns compiled with re replacements, like regex