Close

Puppet – Regular expressions

https://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#regular-expressions

Announcement

I have released my new course on Udemy, Kubernetes By Example. Sign up now to get free lifetime access!

 

 

In bash you encase regular expressions in double-quotes. However in puppet you encase them in forward slashes. I.e. this is wrong:

 

“regex”

 

but this is correct:

 

/regex/

This is the perl syntax of regex