I want to valid a html using regular expression for this i need a regular expression of div selection.
i used this
(<div.*?>.*?<\/div>)
but the problem is there, it valid this kind of text also :
<div>some this <div> some another text</div>
which is not valid
i need that kind of expression which give me only last part which is
<div> some another text</div>
Please advice me