Puppet – Regular expressions

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

 

 

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