Hi All,
I am having an issue trying to get this RegEx Replace to work.
We need to remove hyphens and apostrophes from user's email address when sending a SAML Claim. This is a limitation on the vendor's part to ingest hyphens and apostrophes.
If a user has a hyphen or apostrophe in their email address, it needs to be removed when sending the claim.
Example Email Claim: ******@company.com
Expected Transform Claim / Output: BobSacamentoWilliams
Current Settings:
Transformation: RegExReplace ()
Attribute: user.mail
Regex Pattern: (?'mail'^.*?)(?i)(@.*)$
Replacement Pattern: {mail}
I am not sure where to use [^-']
in the RegEx Pattern portion to extract everything except the hyphen and apostrophe. Microsoft does not appear to be using any syntax that makes sense from other websites.
