ScottCybak
Programmer
I've read str_replace, ereg_replace and preg_replace, but still can't formulate what the heck i need to do..
I'm trying to extract the string between <x> and <y> from a string. So, say the string is
"<x>This will be visible</y> This won't <x>This will be as well</x>"
i want it to return:
<x>This will be visible<y><x>This will be as well</x>
ultimately, it will convert the x and y to a <p> </p> tag, but that is the least of my worries.
I was just about to code a big character scan loop but thought perhaps i just don't understand the function that i need to use.
TIA! Scott Cybak
Nighthawk Transport Inc.
I'm trying to extract the string between <x> and <y> from a string. So, say the string is
"<x>This will be visible</y> This won't <x>This will be as well</x>"
i want it to return:
<x>This will be visible<y><x>This will be as well</x>
ultimately, it will convert the x and y to a <p> </p> tag, but that is the least of my worries.
I was just about to code a big character scan loop but thought perhaps i just don't understand the function that i need to use.
TIA! Scott Cybak
Nighthawk Transport Inc.