I try to extract text between parapgraph tag using RegExp in javascript. But it doen't work...
My pattern:
<p>(.*?)</p>
Subject:
<p> My content. </p> <img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTJ9ylGJ4SDyl49VGh9Q9an2vruuMip-VIIEG38DgGM3GvxEi_H"> <p> Second sentence. </p>
Result :
My content
What I want:
My content. Second sentence.
` tags just fine with regex (despite the warnings against parsing generally with it), but if you're using JavaScript there's no need to since you have `document.getElementsByTagName("p")`.
– Reinstate Monica -- notmaynard Feb 19 '13 at 23:58Paragraph1
Paragaph2`
– gilly3 Feb 20 '13 at 01:37