Returns Regexp that is default self.regexp[:ABS_URI_REF], unless schemes is provided. Then it is a Regexp.union with self.pattern[:X_ABS_URI].

Source: Ruby 3.1 / URI::RFC2396_Parser#make_regexp – DevDocs

Good for identifying URLs.