Help With Advanced String Replacement
Posted on 2006-10-29
I am working on a project and need to replace a block of text within a string started and ending with a unquie character string. For example,
My string would look something like this printed out:
The First Comment
The Second Comment
The Third Comment
I need to somehow parse that string finding the starting "<!--" all text within the "-->" and store in an array so then I can loop through the array calling the replace function to swap the text to a new string. Does this make sense? I would greatly appreciate any tips or suggestions!