[augeas-devel] Case-insensitive regexps in path expressions, again

David Lutterkort lutter at redhat.com
Wed Nov 21 00:15:27 UTC 2012


On Fri, 2012-11-09 at 14:59 -0800, lutter at redhat.com wrote:
> I've been letting this linger for way too long: this patch series
> (originally from Raphael) adds the ability to match regexps
> case-insensitively in path expressions. You can write
> 
>   match /files/etc/hosts/*[canonical =~ regexp('host[0-9]+', 'i')]
> 
> The old syntax of
> 
>   match /files/etc/hosts/*[canonical =~ regexp('host[0-9]+')]
> 
> is still supported, and still matches in a case sensitive fashion.
> 
> There is one wrinkle with this patch series in 1/5: you can no longer use
> ',' in names in path expressions; i.e., where you used to write "match
> hd1,2" you now have to write "match hd1\,2"
> 
> Please let us know if that change seems unacceptable to you.

Since there have been no requests to change this, I just pushed these
patches.

David





More information about the augeas-devel mailing list