Better regex comparison