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

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to