Hi everyone,
A quick question for you, here is the code:
$tt=regsubst("test","^(.*)->(.*)",'\2')
Doesn't return: undef or nil, it does return: "test"
Niether does $tt=regsubst("test","^(.?)->(.*)",'\2')
or $tt=regsubst("test","^(.+?)->(.*)",'\2').
Is there a way to return undef if the string doesn't include '->something' ?
Regards,
JM
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.