【www.gdgbn.com--word】

个字符串中带有双引号,如何获取到双引号内的字符串呢?

例如string words="hello"world"";要获取到"world"

using system.text.regularexpressions;

string words = "hello"world"";        regex regex = new regex(""[^"]*"");        string result = regex.match(words).value.replace(""", "");

 

本文来源:http://www.gdgbn.com/bangongshuma/29153/