I need to swap the {x}th and all succeeding occurences of a given character within a string. Example: if x is 3 and the character "e" should be replaced by "1", then:
"Terence and Philip are sweet"
Should be changed to:
"Terenc1 and Philip ar1 sw11t".
Any help will be gratefully received.
Thanks, -Standfast.
In reply to Replacing a given character starting with the xth occurence in a string by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |