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

Dominique Dumont dominique.dumont at hp.com
Fri Jan 16 12:39:23 UTC 2009


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)

All the best

-- 
Dominique Dumont 
"Delivering successful solutions requires giving people what they
need, not what they want." Kurt Bittner

irc:
  domidumont at irc.freenode.net
  ddumont at irc.debian.org




More information about the augeas-devel mailing list