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

Content added Content deleted
(Add BCPL)
No edit summary
Line 2,684: Line 2,684:
{{Out}}
{{Out}}
<pre>Sh ws soul strppr. Sh took my hrt!</pre>
<pre>Sh ws soul strppr. Sh took my hrt!</pre>

=={{header|Vlang}}==
<lang vlang>fn main() {
println(stripchars("She was a soul stripper. She took my heart!","aei"))
}

fn stripchars(str string, charstrip string) string {
mut newstr := str
for element in charstrip {newstr = newstr.replace(element.ascii_str(), '')}
return newstr
}</lang>

{{out}}
<pre>
Sh ws soul strppr. Sh took my hrt!
</pre>


=={{header|Wren}}==
=={{header|Wren}}==