我试图获取某个字符的出现次数,如&下面的字符串.
&
string test = "key1=value1&key2=value2&key3=value3";
如何确定上述测试字符串变量中有2个和号(&)?
c# regex linq
c# ×1
linq ×1
regex ×1