mardi 28 août 2018

Regex match text from div inside another div

i have this situation

    <div id="idName" class="className">
        <div>
          Text i need to match.
        </div>        
    </div>

I want to scrapp this text, i tried in this way but it does not work.

/class=\"className.*?<\/div>)/s

Any ideas?




Aucun commentaire:

Enregistrer un commentaire