PDA

View Full Version : [HDI] Replace the second instance of a group of characters in a string?


ibeblunt
Wed 26th May '04, 5:59pm
How do I replace the x instance of a group of characters in a string?

For example.

<p>Paragraph 1.</p>

<p>Paragraph 2.</p>

<p>Paragraph 3.</p>

<p>Paragraph 4.</p>

I'd like to replace the 2nd occurance of the </p> with something else. How would I do that?