这:
\n\n Regex regexObj = new Regex(@"\\b(?=\\S*[a-z])\\w+\\b", RegexOptions.IgnoreCase);\n Match matchResults = regexObj.Match(subjectString);\n while (matchResults.Success) {\n // matched text: matchResults.Value\n // match start: matchResults.Index\n // match length: matchResults.Length\n matchResults = matchResults.NextMatch();\n } \nRun Code Online (Sandbox Code Playgroud)\n\n想到了。
\n\n"\n\\b # Assert position at a word boundary\n(?= # Assert that the regex below can be matched, starting at this position (positive lookahead)\n \\S # Match a single character that is a \xe2\x80\x9cnon-whitespace character\xe2\x80\x9d\n * # Between zero and unlimited times, as many times as possible, giving back as needed (greedy)\n [a-z] # Match a single character in the range between \xe2\x80\x9ca\xe2\x80\x9d and \xe2\x80\x9cz\xe2\x80\x9d\n)\n\\w # Match a single character that is a \xe2\x80\x9cword character\xe2\x80\x9d (letters, digits, etc.)\n + # Between one and unlimited times, as many times as possible, giving back as needed (greedy)\n\\b # Assert position at a word boundary\n"\nRun Code Online (Sandbox Code Playgroud)\n