I have a computer generated text that looks like as follows (I've modified the white space to make it more pleasant on the eyes).
<li class="activitybit forum_post">
<div class="avatar">
<img src="image.php?s=64ca7b4cc0fa2850f6c763105eee901b&u=37080&dateline=1396817868&type=thumb" alt="killathi's Avatar" />
</div>
<div class="content hasavatar">
<div class="datetime">
<span class="date">Today, <span class="time">07:14 PM</span></span>
</div>
<div class="title">
<a href="member.php?37080-killathi&s=64ca7b4cc0fa2850f6c763105eee901b">killathi</a> replied to a thread <a href="showthread.php?1016907-doodles!-Maybe-I-won-t-have-lines-in-it-this-time!!!-MUAHAHHAHAHAAHAH&s=64ca7b4cc0fa2850f6c763105eee901b">doodles! Maybe I won't have lines in it this time!!! MUAHAHHAHAHAAHAH</a> in <a href="forumdisplay.php?208-Fan-Creations&s=64ca7b4cc0fa2850f6c763105eee901b">Fan Creations</a>
</div>
<div class="excerpt">I'll hold this one here for now I guess, not really sure where to go with it lol</div>
<div class="fulllink"><a href="showthread.php?1016907-doodles!-Maybe-I-won-t-have-lines-in-it-this-time!!!-MUAHAHHAHAHAAHAH&s=64ca7b4cc0fa2850f6c763105eee901b&p=9844450#post9844450">see more</a></div>
</div>
<div class="views">77 replies | 3407 view(s)</div>
</li>
I've used the regex : (?:<div class=\"title\">)((?:[\s\S]*?))(?:</div>)
and I've extracted the following in the first non-ignored group:
<a href="member.php?37080-killathi&s=64ca7b4cc0fa2850f6c763105eee901b">killathi</a> replied to a thread <a href="showthread.php?1016907-doodles!-Maybe-I-won-t-have-lines-in-it-this-time!!!-MUAHAHHAHAHAAHAH&s=64ca7b4cc0fa2850f6c763105eee901b">doodles! Maybe I won't have lines in it this time!!! MUAHAHHAHAHAAHAH</a> in <a href="forumdisplay.php?208-Fan-Creations&s=64ca7b4cc0fa2850f6c763105eee901b">Fan Creations</a>
However, I'm wondering if its possible to (and if so how do you) exclude everything within triangular brackets using regex.
I know that I need to do something in ((?:[\s\S]*?))
but I'm not really sure how to do it.
(It is safe to assume all text will come in this format).