DEV Community

Discussion on: Daily Challenge #3 - Vowel Counter

Collapse
 
rafi993 profile image
Rafi

SQL (Postgres)


\set x 'Hello world'

 select count(*) from                                                                                            
   (select 
     regexp_matches(:'x', '[aeiou]', 'gi')) 
     as vowels;