Adding regular expression comparison capability