Anonymous user
Strip a set of characters from a string: Difference between revisions
Strip a set of characters from a string (view source)
Revision as of 22:25, 7 June 2011
, 13 years agoadded ruby
(added perl) |
(added ruby) |
||
Line 131:
>>> stripchars("She was a soul stripper. She took my heart!", "aei")
'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}}==
|