[augeas-devel] Regexp match for path expressions

David Lutterkort lutter at redhat.com
Tue Sep 22 01:00:50 UTC 2009


Following the mail last week, I decided to implement regexp match with a
'=~' operator, and by making the constructor for regexps an ordinary
function, cunningly called 'regexp'. With that, you can now write:

  match /files/etc/sysconfig/network-scripts/*[label() =~ regexp('.*-eth0')]

Note that these patches need to be applied on the error API patch series I
just sent out.

David




More information about the augeas-devel mailing list