这看起来很简单,但我从未做过正则表达式,所以只是来自 JS 正则表达式专家的一个简单问题。
var str = '<a href="test">luckyy1</a> born on october 21, 1986 <a href="test">sdf2</a> born on september 22, 1985 <a href="test">erere</a> born on November 23, 1984 ';
我成功获得了以下值:luckyy1
, sdf2
,erere
但我需要它luckyy1+october+21+1986,sdf2+september+22+1985,erere+
......等等(也许我需要正则表达式对吗??)
任何帮助,将不胜感激。