I have a bunch of machines that are all named using the same syntax that I would like to create a dynamic group for. The computer names all look like AA-DEV-AA where the ending AA is always the individual developers initials. In my case my computer name would be AA-DEV-JB. I created the dynamic group using the regular expression below.
The ?i: ensures that the expression is not case sensitive. The $ at the end is because there are some machines that are named things like AA-DEV-SQL which I don’t want to include in the group.