Selectively replace multiple instances of a character within a string: Difference between revisions
Selectively replace multiple instances of a character within a string (view source)
Revision as of 18:35, 31 May 2022
, 2 years ago→{{header|Julia}}
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.
|