Count how many vowels and consonants occur in a string: Difference between revisions
Count how many vowels and consonants occur in a string (view source)
Revision as of 15:47, 13 April 2022
, 2 years agoAdded Arturo implementation
No edit summary |
Drkameleon (talk | contribs) (Added Arturo implementation) |
||
Line 174:
5 vowels and 9 consonants (total)
</pre>
=={{header|Arturo}}==
<lang rebol>vRe: {/[aeiou]/}
cRe: {/[bcdfghjklmnpqrstvwxyz]/}
str: lower "Now is the time for all good men to come to the aid of their country."
vowels: match str vRe
consonants: match str cRe
print ["Found" size vowels "vowels -" size unique vowels "unique"]
print ["Found" size consonants "consonants -" size unique consonants "unique"]</lang>
{{out}}
<pre>Found 22 vowels - 5 unique
Found 31 consonants - 13 unique</pre>
=={{header|AutoHotkey}}==
|