Regex for SAML group in Entra ID

I am looking for some help on regular expression for saml groups, I have set of groups ending with xyz and few groups starting info.test, and info.dev …etc

I have added the group claim in AzureAD and I have selected source attribute name as sAMAccountName and in advanced claims I have selected customize the name of the group claim name as groups and selected apply regex replacement to groups claim content and entered following in regex pattern ^.**xyz|ifo.Dev).**and in replacement pattern mentioned $1 I am getting output as $1 but not group name tried $& as well getting $& as output tried with ${1} but I am not getting the group name in the claim need help on it

Read more here: Source link