String Replace at Intervals has been submitted to Free Addons and should be available soon.
This is a coding utility which can be used to modify output strings. For example, you can add a <br /> or classname to every third occurrence of an element for formatting. This can be changed (dynamically, even) without touching the original generator.
There is also a version of the function which can handle single-level arrays as if they were strings, except that the string to be replaced cannot span across array element boundaries.
* You can replace every nth occurrence of a search string with another string.
* You can start replacement at any occurrence of the search string.
* You can start looking for occurrences of the search string at any position in the base string.
Bookmarks