[PATCH xfree86] Signed-off-by: Oleh Nykyforchyn <oleh.nyk at gmail.com>

Oleh Nykyforchyn oleh.nyk at gmail.com
Sun May 22 23:24:44 PDT 2011


On Mon, 23 May 2011 12:55:20 +1000
Peter Hutterer <peter.hutterer at who-t.net> wrote:

> 
> right, I remember now. my main grief was that it would have been another
> rather specific syntax instead of the quite common s/foo/bar. i don't have a
> problem with regex per-se as long as we can get the syntax sorted out.
> 

It seems to me that supporting multiple comparison modes like "strcmp", "strcasecmp",
"fnmatch", "regex" etc through an optional argument would add more complexity than will
be used even in rather weird setups. What about two modes: simple |-separated sequence,
with hardcoded comparison functions, as it is now, and single "regex" per statement,
which covers all special cases?
-- 
Oleh Nykyforchyn <oleh.nyk at gmail.com>



More information about the xorg-devel mailing list