Added the option to compare by regular expressions.