I have a JavaScript variable which holds an HTML page and due to the setup I need to extract everything between and
and
var html = "hello stackoverflow!"; var matches = html.match(/[\S\s]*?<\/div>/gi); var matches = matches[0].replace(/(<\/?[^>]+>)/gi, ''); // Strip HTML tags? alert(matches); 0 讨论(0) 查看其它10个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复