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:04, 12 June 2022
, 1 year agoStrip a set of characters from a string in BASIC256
(Strip a set of characters from a string in Run BASIC) |
(Strip a set of characters from a string in BASIC256) |
||
Line 733:
See also: [[#Liberty BASIC|Liberty BASIC]], [[#PureBasic|PureBasic]]
=={{header|BASIC256}}==
<lang BASIC256>function stripchars(texto, remove)
s = texto
for i = 1 to length(remove)
s = replace(s, mid(remove, i, 1), "", true) #true se puede omitir
next i
return s
end function
print stripchars("She was a soul stripper. She took my heart!", "aei")</lang>
=={{header|BBC BASIC}}==
|