日期:2014-05-18 浏览次数:20925 次
String regex = @"(\bitem_num_id\b|\bitem_num\b|\bmallstItemId\b|\bdefault_item_id\b|\bid\b)=([\d]+)"; var res = Regex.Match(url, regex, RegexOptions.Singleline | RegexOptions.IgnoreCase) .Groups;
var reg=/(\bitem_num_id\b|\bitem_num\b|\bmallstItemId\b|\bdefault_item_id\b|\bid\b)=([\d]+)/i; var res=url.match(reg).length;