[augeas-devel] Weird print result with Perl bindings on amd64

David Lutterkort lutter at redhat.com
Fri Jan 16 16:09:08 UTC 2009


On Fri, 2009-01-16 at 13:39 +0100, Dominique Dumont wrote:
> David Lutterkort <lutter at redhat.com> writes:
> 
> >> On my side, I've tinkered a lot the regex on the right side and never
> >> managed to have an effect. Even
> >> 
> >>   let key_re = /[A-Za-z0-9]+/ - "Match" 
> >> 
> >> does not work. Hence the suspicion regarding the '-'
> >
> > It does not appear that the '-' is the problem. When you compute the
> > regexp for the above, you get
> >
> >         /Match[0-9A-Za-z][0-9A-Za-z]*|Matc([0-9A-Za-gi-z][0-9A-Za-z]*|())|Mat([0-9A-Zabd-z][0-9A-Za-z]*|())|Ma([0-9A-Za-su-z][0-9A-Za-z]*|())|(M[0-9A-Zb-z]|[0-9A-LN-Za-z][0-9A-Za-z])[0-9A-Za-z]*|M|[0-9A-LN-Za-z]/
> >         
> > which is correct.
> 
> I wonder why you apply the '-' operator to the regexes ?  (instead of
> applying the '-' operator on the *results* of the the regexes)

I don't understand what you mean. Can you give an example ?

David





More information about the augeas-devel mailing list