Count how many vowels and consonants occur in a string: Difference between revisions

Added Arturo implementation
No edit summary
(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}}==
1,532

edits