Are there any good checkers for URLs in text files?
I wrote https://github.com/jwilk/urlycue , but I'm not quite happy about it, I don't have energy to improve it either; so I'm looking for alternatives.
I wrote https://github.com/jwilk/urlycue , but I'm not quite happy about it, I don't have energy to improve it either; so I'm looking for alternatives.
https://tools.ietf.org/html/rfc3986#appendix-B
Edit: I see it's not quite that simple. However, I still think that with some stricter matching requirements this could work.
The URI language is of course regular, so it would be possible to construct a regexp that matches only URIs. But naively applying such regexp wouldn't work in practice, because many punctuation characters are allowed in URIs. For example, single quotes are allowed, so in this Python code the regexp would match too much:
homepage = 'http://example.com/'