I am trying to select all the text between
tags from a parent tag. How to do this. using regex
This is my sample string
<p>sddsd</p>
<pre>
<p>line 1</p>
<p>line 2</p>
<p><line 3</p>
</pre>
I want to select only this
line 1
line 2
line 3
I am using this regex, but it is selecting only first line of p tag
<pre>\n<p>(.+)<\/p>
use this website to run your regex
Please help me...