1
页
从字符串相加或数字我有类似于这种大量的文本字符串的页面:jQuery的获得
[1 item here]
Blah blah 99 bottles of beer
[2 items here]
blah [9 items here]
我正在寻找一种方式来获得总(12)作为一个简单的警告:
the_magic_number= 'me no habla regex'
alert (the_magic_number);
尝试'document.body.textContent.match(/ \ [(\ d +)项目在这里\]/G);'把所有匹配的字符串 – Ian 2013-04-30 04:05:58
那岂不是 “哟没有hablo正则表达式”。 – Blender 2013-04-30 04:14:02
@Blender显然没有habloEspañoltambien – 2013-04-30 04:14:36