Allow prefix in group name

Changed the regexp to allow for group names that are prefixed.