Selectively replace multiple instances of a character within a string: Difference between revisions

Content added Content deleted
Line 248: Line 248:
aA aB a3 aC aD 3a // save third "a" as "3" and restore it
aA aB a3 aC aD 3a // save third "a" as "3" and restore it
bE // first "b"
bE // first "b"
r1 rF 1r // save first "a" as "1" and restore it
r1 rF 1r // save first "r" as "1" and restore it
}}
}}
-> AErBcadCbFD
-> AErBcadCbFD