最佳答案
是否可以使用正则表达式来检测任何不是“空字符串”的东西,如下所示:
string s1 = "";
string s2 = " ";
string s3 = " ";
string s4 = " ";
等等。
我知道我可以使用装饰等,但我想使用正则表达式。