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

Strip a set of characters from a string in Run BASIC
(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:
=={{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|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}}==
2,170

edits