I have a JavaScript variable which holds an HTML page and due to the setup I need to extract everything between and
and
This should do it:
pattern = /(.*?)<\/div>/; matches = your_html_var.match(pattern); the_string = matches[0]; document.write(the_string); 0 讨论(0) 查看其它10个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复