glob instead of regexp
Thomas Arendsen Hein
thomas at intevation.de
Thu Jul 14 09:51:52 UTC 2005
* vadim at mbdsys.com <vadim at mbdsys.com> [20050714 11:44]:
> >>>But that's precisely the idea: you just always start your regexps with
> >>>^. Need to match something arbitrary inside the string? ^.*
> >>
> >>By the way, this is the way numerous programs distinguish between
> >>shell patterns and regular expression (Exim, for example).
>
> Why can't we simply prefix the expression with 're:' in one case ang
> 'glob:' ub the ather?
I suggest the following compromise:
Patterns are glob by default,
patterns after "re:" are considered regexps.
Any objections?
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list