----- Original Message ----- > From: "Peter Bukowinski" <pmb...@gmail.com> > To: "puppet-users" <puppet-users@googlegroups.com> > Sent: Tuesday, November 17, 2015 4:01:38 PM > Subject: Re: [Puppet Users] Regex and Hyphen in node definitions
> Is consider removing the ^ and $ anchors. I think I you'll find it works > without > them. > > -- Peter > >> On Nov 17, 2015, at 9:57 AM, Matt Shields <m...@mattshields.org> wrote: >> >> If there are any other suggestions on how to regex the nodes, that would be >> extremely helpful. We name our hosts like. >> >> {clientname}-{purpose}{001-999} >> Ex. >> ops-db001 -> uses db profile >> ops-bidb001 -> uses bidb profile >> ops-sdb001 -> uses sdb profile >> ops-web001 -> uses web profile >> >> client1-db001 >> client1-bidb001 >> client1-sdb001 >> client1-web001 anything without - really, so \W would work in this particular case /^(.*)\W(db00)(.*)$/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1210234894.1130888.1447776285234.JavaMail.zimbra%40devco.net. For more options, visit https://groups.google.com/d/optout.