0

TEST STRING: view-source:http://www.shiksha.com/b-tech/colleges/b-tech-colleges-chennai

Regular Expression:

(<ul class="facility-icons">
(<li class="emptyDesc">
<i class="fc_icons ic_fac_(.+)">
<div class="srpHoverCntnt2">
<h3>(.+)<\/h3>
<p><\/p>
<\/div>
<\/i>
<\/li>)+)
<\/ul>

error: Regular Expression is not matching the subject string

I want the facilities of a college in a group. How can I correct this regular expression or what another way can I extract that?

  • Possible duplicate of [RegEx match open tags except XHTML self-contained tags](http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags) – pvg Mar 07 '17 at 05:35
  • The question is very different as I need an array of arrays where arrays are the facilities of a college and array is the list of colleges. – Chirayu Asati Mar 07 '17 at 08:12
  • 1
    The answer is the same. 'Just use a parser, not a regex'. – pvg Mar 07 '17 at 08:15

0 Answers0