>I am pulling a lot of text from web pages. With it comes quite a bit of code(ish) looking unwanted characters and snippets.
>
>Is there an efficient way to delete the unwanted text without removing all or part of the text I want along with it?
Check the page encoding. If it's UTF-8 or such, you may need to convert the text using strconv() once or twice.