Hey, I finally figured out how to replace all the text within
<tagname>blah , text is here, more text</tagname>
Now, I can grab that, but let's say my string looks like this:
<tagname>blah , text is here, more text</tagname> so yeah here is so text not in the tags. <tagname>this text is within tags</tagname> the end.
so if I use the code I have, itll grab
"<tagname>blah , text is here, more text</tagname> so yeah here is so text not in the tags. <tagname>this text is within tags</tagname>"
I need help with code so it wills top at the first </tagname> and then split it and add the second set of tags' data.
heres what I was using:
eregi("(<tagname>)(.*)(</tagname>)","<tagname>blah</tagname>,$Data);