Forum Discussion

deep198486's avatar
deep198486
Copper Contributor
Nov 13, 2024

password match regex for sensitive info type

need to  create regex for password match for combination of uppercase , lowercase ,numbers and special characters
I use this regex  ^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[^a-zA-Z0-9]).{8,}$
but get below error
Invalid regex detected. Please address the following errors:

You cannot configure a pattern with groups or multiple match conditions like (.*, .+, .{0,n} or .{1,n}). Remove the group or the multiple match condition from the pattern to continue.

Is this achievable in Microsoft sensitive info type regex pattern string match

Resources