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

m
m (julia example)
Line 102:
 
trstring("abracadabra", rep)
</lang>
 
=={{header|Perl}}==
Line 122:
{{out}}
<pre>abracadabra -> AErBcadCbFD</pre>
 
=={{header|Raku}}==
Set up to not particularly rely on absolute structure of the word. Demonstrate with both the original 'abracadabra' and with a random shuffled instance.
4,107

edits