开发者

how can i use RegExp to grap data from this site? [duplicate]

This question already has answers here: 开发者_JS百科 Closed 12 years ago.

Possible Duplicate:

RegEx match open tags except XHTML self-contained tags

i want to grap data from this site using RegExp http://www.islamqa.com/en/ref/20494 specially data in div with class="subject-container"

i tried this

/<div class="subject-container">(.*?)<\/div>\s*/is

but it gave me Invalid RegExp

why?


inside html code:

<div class="subject-container" >

possibly missed one space

/<div class="subject-container"\s*>(.*?)...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜