Adds regex rule