string str="this is china and very good country i have ever seen in earth. but there is such people who did not
aware their brothers and sisters like animal, except for a few chinese people."
我有这个字符串 string temp="brothers and sisters" 我要用这个字符串来获取它的完整句子.比如: but there is such people who did not aware their brothers and sisters like animal, except for a few chinese people.
怎么能取temp两边的规定的字符串...
aware their brothers and sisters like animal, except for a few chinese people."
我有这个字符串 string temp="brothers and sisters" 我要用这个字符串来获取它的完整句子.比如: but there is such people who did not aware their brothers and sisters like animal, except for a few chinese people.
怎么能取temp两边的规定的字符串...
string s = @"this is china and very good country i have ever seen in earth. but there is such people who did not aware their brothers and sisters like animal, except for a few chinese people.";
MatchCollection matches = Regex.Matches("." + s, @"(?is)(?<=\.)[^.]*brothers and sisters[^.]*\.");
foreach (Match match in matches)
Console.WriteLine(match.Value);