Announcement

Collapse
No announcement yet.

[HDI] Replace the second instance of a group of characters in a string?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [HDI] Replace the second instance of a group of characters in a string?

    How do I replace the x instance of a group of characters in a string?

    For example.

    Code:
    <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?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X