Add regex rule