62,025
社区成员
发帖
与我相关
我的任务
分享
var str="CheckInstallQQ('855003478',as,as2,2222";
var reg=/CheckInstallQQ\('(\d+)(?=')/i;
var result = str.match(reg);
alert(result[1]);
function CheckInstallQQ(QQ) {
var re = /\d+/;
if (re.test(value)) {
return value;
} else {
return '不是QQ号';
}
}
string str = "CheckInstallQQ('855003478'";
Regex reg = new Regex(@"\d+");
Console.WriteLine(reg.Match(str).Value);