Strip a set of characters from a string: Difference between revisions
Strip a set of characters from a string (view source)
Revision as of 23:02, 12 June 2022
, 2 years agoStrip 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}}==
|