You can rewrite this as `Regexp === fragment`