trystring yourStr = ...............; Match m = Regex.Match(yourStr, @"http://222\.54\.214\.227/ss/rf\.php\?site_id=(?<id>\d+)", RegexOptions.IgnoreCase); if (m.Success) { MessageBox.Show(m.Groups["id"].Value); }
Regex re = new Regex(@"^.*site_id=(.*)$", RegexOptions.None); MatchCollection mc = re.Matches("http://222.54.214.227/ss/rf.php?site_id=15"); foreach (Match ma in mc) { MessageBox.Show(ma.Groups[1].Value); }
Match m = Regex.Match(yourStr, @"http://222\.54\.214\.227/ss/rf\.php\?site_id=(?<id>\d+)", RegexOptions.IgnoreCase);
if (m.Success)
{
MessageBox.Show(m.Groups["id"].Value);
}
MatchCollection mc = re.Matches("http://222.54.214.227/ss/rf.php?site_id=15");
foreach (Match ma in mc)
{
MessageBox.Show(ma.Groups[1].Value);
}