On Thu, Aug 29, 2019 at 10:40:53AM +0300, Գասպար Վարդանյան 
<[email protected]> wrote:
> matcher fails to detect the url in this form: 'http://foo.bar':foobar

That doesn't look like a valid URL to me. Do you mean http://foo.bar?

> I found a better regex,

What makes you think that is a better regex (especially if you haven't even
tried it)?

> but can't translate it to perl.

Haven't tried it, but it almost certainly is perl regex, so no translation
would be required. You also don't have to translate it to perl, you can
configure it via your .Xdefaults (see man urxvt-matcher) to try it out.

The problem is that URLs are flexible enough that matching all possibly
valid urls will lead to a large number of false matches while at the same
time not matching many "URLs" which users actively use and expect to work
even if not completely valid, so simply matching all possible forms is not
useful.

This might not suit every possible application, which is why the regexes
are easily configurable.

Of course, the default regex can surely be improved, the question is how.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/rxvt-unicode

Reply via email to