How do you scan a string for a custom html tag <custom>and put everything in the custom tag</custom> in a string, delete the custom tag and everything in it, and put the formatted custom tag content in it's place?
I think regex is the way to get the data for the custom tag and I was hopign someone would have something along the lines of $customtagcontent = eregi_replace($magical_regex_here, '', $text_blob);