Add support for regex rule