----- Original Message -----
> From: "Peter Bukowinski" <
pmb...@gmail.com>
> To: "puppet-users" <
puppet...@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 <
ma...@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)(.*)$/