Fix comparison equality of two regexps.