use validate_re() instead from puppetlabs/stdlib