[SR-Users] Using =~ to get the group identifier with longest match