开发者

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

开发者 https://www.devze.com 2022-12-27 00:04 出处:网络
This question already has answers here: 开发者_JS百科 Closed 12 years ago. Possible Duplicate: RegEx match open tags except XHTML self-contained tags
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

精彩评论

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