【发布时间】:2012-03-05 11:03:42
【问题描述】:
我正在编写一个 Javascript 函数。我需要从以下变量中获取数字 228
var cancelURL = "artGallery.cgi?productid=228&key=photo&resultsC=20";
有人可以告诉我如何编写正则表达式模式来搜索值对中的数字吗?
【问题讨论】:
-
总是
productid=<some number>吗? -
是的,Xander,总是不同的 id
标签: javascript regex