0

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?

Community
  • 1
  • 1
manhag
  • 322
  • 1
  • 7
  • 15

1 Answers1

0

inside html code:

<div class="subject-container" >

possibly missed one space

/<div class="subject-container"\s*>(.*?)...
Oleg Razgulyaev
  • 5,757
  • 4
  • 28
  • 28