Strip a set of characters from a string: Difference between revisions
Content added Content deleted
(Add Uiua) |
(Add ed example) |
||
Line 1,319: | Line 1,319: | ||
→ "Sh ws soul strppr. Sh took my hrt!" |
→ "Sh ws soul strppr. Sh took my hrt!" |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
=={{header|ed}}== |
|||
Have to edit the list of chars in the code, but otherwise working. |
|||
<syntaxhighlight lang="sed"> |
|||
H |
|||
g/.*/s/[aei]//g |
|||
,p |
|||
Q |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre>$ cat strip-chars.ed | ed -lEGs strip-chars.input |
|||
Newline appended |
|||
Sh ws soul strppr. Sh took my hrt!</pre> |
|||
=={{header|Elena}}== |
=={{header|Elena}}== |