Strip a set of characters from a string: Difference between revisions

Content added Content deleted
(added perl)
(added ruby)
Line 131: Line 131:
>>> stripchars("She was a soul stripper. She took my heart!", "aei")
>>> stripchars("She was a soul stripper. She took my heart!", "aei")
'Sh ws soul strppr. Sh took my hrt!'</lang>
'Sh ws soul strppr. Sh took my hrt!'</lang>

=={{header|Ruby}}==
<lang ruby>>> "She was a soul stripper. She took my heart!".delete("aei")
=> "Sh ws soul strppr. Sh took my hrt!"</lang>


=={{header|Tcl}}==
=={{header|Tcl}}==