Forum Discussion
leichang77
Aug 03, 2021Copper Contributor
EIN Regex for DLP
We are trying to create a new policy to detect Employer Identification Number (EIN). I'm very new to Regex so I need some help. We've tried the below regex and MCAS is showing me an error of: Capturi...
SLarsen
Aug 25, 2021Copper Contributor
You may have solved this already, but MCAS doesn't allow the usage of capture groups. You can use a non-capture group instead. After the open parenthesis insert "?:" to make the group non-capturing. End result: (?:[07][1-7]|1[0-6]|2[0-7]|[35][0-9]|[468][0-8]|9[0-589])-?\d{7}