Jump to content

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

added Ursala
m (omissions)
(added Ursala)
Line 491:
set s "She was a soul stripper. She took my heart!"
puts [stripchars $s "aei"]</lang>
 
=={{header|Ursala}}==
 
Normally there's no need to define this operation because it's built in.
<lang Ursala>strip = ~&j
 
#cast %s
 
test = strip('she was a soul stripper. she took my heart','aei')</lang>
output:
<pre>
'sh ws soul strppr. sh took my hrt'
</pre>
 
{{omit from|Bc}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.