楼主,试试这个,
try {
Regex RegexObj = new Regex("((\\\".+?\\\")|(\\[.+?])|[\\w\\s]+)");
Match MatchResults = RegexObj.Match(SubjectString);
while (MatchResults.Success) {
MatchResults = MatchResults.NextMatch();
}
} catch (ArgumentException ex) {
// Syntax error in the regular expression
}