V
vivek_12315
I m working on my perl regex code, where I have to parse a html line like :
<a href="/question?id=15422849"><p>MY text here 1</p><p>MY text here 2</p><p>MY text here 3</p></a>
I am doing something like:
$string =~ m/(.*)href(.*)/;
But this is not helping me in what I want. I want something closer to following text:
"MY text here 1 MY text here 2 MY text here 3"
Can some give some ideas ?
<a href="/question?id=15422849"><p>MY text here 1</p><p>MY text here 2</p><p>MY text here 3</p></a>
I am doing something like:
$string =~ m/(.*)href(.*)/;
But this is not helping me in what I want. I want something closer to following text:
"MY text here 1 MY text here 2 MY text here 3"
Can some give some ideas ?