我需要在C#中使用正则表达式提供帮助 我需要在正则表达式中满足以下规则:
我尝试了下面的正则表达式。它满足了以上所有规则对空间的期望。请帮忙
@"^(?=.\S*\d)(?=.\S*[A-Z]).{8,28}$|^(?=.\S*\d)(?=.\S*[a-z]).{8,28}$|^(?=.\S*[A-Z])(?=.\S*[!@#$%\^*]).{8,28}$|^(?=.\S*[a-z])(?=.\S*[!@#$%\^*]).{8,28}$|^(?=.\S*\d)(?=.\S*[!@#$%\^*]).{8,28}$|@"^(?=.\S*[A-Z])(?=.\S*[a-z]).{8,28}$";