On 2012-04-16 15:57, Antidot SAS top-posted:

> Thx for the reply it helps.
> 
> But how come the \2 returns something that I never asked?

It doesn't.  But since there are no occurrances of '^(.*)->(.*)',
then there are none that get replaced.  Similarly, if you do:

    regsubst('foobar', 'x', 'y')

you will get 'foobar', since there *is* no 'x' in 'foobar' that
can be replaced by a 'y'.


        /Bellman

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to