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

m
(add lambdatalk code)
Line 190:
bE // first "b"
r_ rF // second "r"
_a _r _a // restore thirdfirst "ar" and firstthird "ra"
}
-> AEaBcrdCbFDAErBcadCbFD
(AErBcadCbFD)
</lang>
 
2) For a more general (and more complex) algorithm see http://lambdaway.free.fr/lambdawalks/?view=replace .
 
=={{header|Phix}}==