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

lutter at redhat.com lutter at redhat.com
Fri Nov 9 22:59:26 UTC 2012


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.

David




More information about the augeas-devel mailing list