1
TTry 2016-03-21 08:03:42 +08:00 1
str.match(regexp)[1]
|
2
ppgs8903 2016-03-21 09:07:30 +08:00 1
var re = /hello src=(.+) yes/;
var str = "hhsdj dskj hello src=value yes"; re.exec(str); alert(RegExp.$1); |