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

Content added Content deleted
(Strip a set of characters from a string in True BASIC)
(Strip a set of characters from a string in Run BASIC)
Line 2,155: Line 2,155:
=={{header|Ruby}}==
=={{header|Ruby}}==
<lang ruby>"She was a soul stripper. She took my heart!".delete("aei") # => "Sh ws soul strppr. Sh took my hrt!"</lang>
<lang ruby>"She was a soul stripper. She took my heart!".delete("aei") # => "Sh ws soul strppr. Sh took my hrt!"</lang>

=={{header|Run BASIC}}==
<lang runbasic>function stripchars(texto, remove)
s = texto
for i = 1 to length(remove)
s = replace(s, mid(remove, i, 1), "", true)
next i

return s
end function</lang>


=={{header|Rust}}==
=={{header|Rust}}==