For sample. I've a code:
Yes, it's with garbage from msword.<div class=Section1>
<p class=Title><o:p> </o:p></p>
<p class=Title align=center style='text-align:center'>title title title title </p>
<p class=Title><o:p> </o:p></p>
<p class=Author><st1:PersonName ProductID=""
w:st="on">Name</st1:PersonName></p>
<p class=Author>Some <st1:PersonName
ProductID="" w:st="on">thing</st1:PersonName>
about the author</p>
<p class=Author>More about the author</p>
<p class=Author><o:p> </o:p></p>
<p class=chapter>1. chapter 1</p>
<p class=Text>text...</p>
<p class=Text>text...</p>
I need take in this code the follow:
I tried but I can't get the point.Name
Some thing about the author
More about the author
If I use like this:
Don't work, 'cause there are more </p> in the text. How I do for it stop in the first </p>?preg_match_all('#<p class=Author>([^<]*)</p>#s',$text,$val);