In Exchange 2010 I was able to send a specific disclaimer (with or without Mobile Phone number) based on a AD Pattern match. Strangly Exchange 2013 does not allow the expression I'm using. I was wondering if anyone could help me out:
I'm using powershell:
Get-TransportRule "Signature - With mobile" | Set-Transportrule -SenderADAttributeMatchesPatterns ("mobilenumber:\S(\S|\s)*")
I've also tried:
\S(\S|\s)*
/\S(\S|\s)*/g
The error i'm getting:
The specified regular expression '\S(\s|\S)*'is invalid.
Parameter name: SenderAttributeMatches
But none seem to work in Exchange 2013. When I stop using groupings (), the expression is allowed though.
Any help would be greatly appriciated