Forum Moderators: coopster

Message Too Old, No Replies

Retrieved middle of tags?

         

zinzinday

5:22 pm on Nov 9, 2008 (gmt 0)

10+ Year Member



<tag attribute1>1
<tag attribute2>2
<tag attribute21>21</tag>
<tag attribute22>22
<tag attribute221>221</tag>
</tag>
</tag>
</tag>
</tag>
<tag attributexx></tag>
<tab attributexx></tab>

I would like to use ("regular expressions" preg_match )to get the middle <tag attribute1></tag>
Result:

1
<tag attribute2>2
<tag attribute21>21</tag>
<tag attribute22>22
<tag attribute221>221</tag>
</tag>
</tag>

I Hope you help to me
Thanks

jatar_k

1:06 am on Nov 10, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



take a look at the example on this page
[php.net...]