Remove vowels from a string: Difference between revisions
Content added Content deleted
(→Joy: add) |
|||
Line 1,980: | Line 1,980: | ||
String without vowels: Rng Prgrmmng Lngg |
String without vowels: Rng Prgrmmng Lngg |
||
</pre> |
</pre> |
||
=={{header|RPL}}== |
|||
≪ "AEIOUaeiou" → string vowels |
|||
≪ "" 1 string SIZE '''FOR''' j |
|||
string j DUP SUB |
|||
'''IF''' vowels OVER POS '''THEN''' DROP '''ELSE''' + '''END''' |
|||
'''NEXT''' |
|||
≫ ≫ ''''NOVWL'''' STO |
|||
{{in}} |
|||
<pre> |
|||
"This is a difficult sentence to pronounce" NOVWL |
|||
</pre> |
|||
{{out}} |
|||
<pre> |
|||
1: "Ths s a dffclt sntnc t prnnc" |
|||
</pre> |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |
||
<syntaxhighlight lang="ruby"> |
<syntaxhighlight lang="ruby"> |