Subject: | Word boundary limits or documentation missing |
For example, $RE{URI}{HTTP} finds HTTP URIs in "foohttp://..." and "foo-
http://...". Avoiding matching the foo-http case could be somewhat
tricky, but placing a simple \b before the scheme names in URI would be
an improvement in my opinion.
I think Regexp::Common should either place word boundary limits where
appropriate, or document that people should be dealing with them
themselves (I couldn't find such a note in the docs). Not sure if the
issue exists with other regexps as well besides the URI one I checked.