|
string yourStr = ......;
MatchCollection mc = Regex.Matches (yourStr, "(. *?) Province (. *?) City", RegexOptions.IgnoreCase);
foreach (Match m in mc)
{
m.Groups [1] .Value; // Province name, such as Shandong
m.Groups [2] .Value; // city name, such as Qingdao
} |
|