Ruby 3.1 / URI::RFC2396_Parser#make_regexp
Returns
Regexp
that is defaultself.regexp[:ABS_URI_REF]
, unless schemes is provided. Then it is aRegexp.union
withself.pattern[:X_ABS_URI]
.
Source: Ruby 3.1 / URI::RFC2396_Parser#make_regexp – DevDocs
Good for identifying URLs.