Extract urls from text
file:
as a valid schemeStrictMatching
be case insensitiveSchemesNoAuthority
non-breaking space
|
and remove "
as valid characters#
, =
and @
as valid ending characters.gnu
and .zkey
as pseudo-TLDsgo test
benchmarks-m
followed by an invalid regexp would panic due to the bug aboveAllStrict
to Strict
and All
to Relaxed
StrictMatching(string)
for creating a strict regex with a custom scheme regular expressionStrict
by default, replace -s
for "strict" with -r
for "relaxed"-m
for specifying a scheme matching regex-e
flag (to be reworked into a better flag soon)-s
flag for only matching URLs with schemes.,:;!?'"
if at the end of the URL)
if at the end of the URL and not well parenthesized::
or randomxmpp:foo
go generate
code generationgo generate
go generate
also build regex stringsInitial release.