I have written the following line of code for "How many NAMEs end with something other than a vowel (aeiou)?"
> v
 [1] "Javon 0502 adrknqgpnbvbbxhhflnr"    
 [2] "Ariel 2312 dmqgkgpqipthwqaqwmjz"    
 [3] "Gunnar 5355 wddpbwdkgslaodvsdxps"   
 [4] "Marcos 4354 eoajpprooplrnfjhngll"   
 [5] "Juliana 1245 zogwfbgcfckkfnrrcgob"  
 [6] "Rolando 0505 nshlkeomtgsmwfmyouma"  
 [7] "Brayan 2322 gsqwwufgacspultfyogu"   
 [8] "Nola 0011 xvhvqppxzcjiyxghhzhy"     
 [9] "Gabriela 4501 dscxbkujflwowgohuzdk" 
[10] "Nikolai 0053 wjfftdaxsvwbjptbktao"  
[11] "Haylee 2301 sruhaqrggjiesrautogk"   
[12] "Kaia 3354 vfmocbpuavocrsviwdyd"     
[13] "Adalyn 1313 pddhqfqkyfngcyuuuooe"   
[14] "Rashad 5004 dkmvrcblsizfoiwzkpfx"   
[15] "Ariana 5105 zlfyhmvjxuqkcxbksxkb"   
[16] "Alexander 3323 kcrpuwqzgdfrogbjzmvr"
[17] "Maurice 1114 gbhwwdafadlggwsezsqj"  
[18] "Austin 3324 ofxaqpvfdobdewcbwiwg"   
[19] "Lacey 1050 lwbgaudzxbiwrxtsohbt"    
[20] "Julissa 5511 jshwvizbllnoaqgerdby"  
[21] "Fernanda 3535 qgakhgddxramvconxdoj" 
[22] "Natasha 5053 ejxchrbcagkhavvzdpte"  
[23] "Adam 3252 ruilxibrihxpnsxyorkx"     
[24] "Felix 5020 laotmpdjbfwdyfcjfixh"  
grep(pattern="^[aeiou]$",x=v)
The problem is that it finds the words that don't end with a vowel rather than just the first word in the line. How can I use regex to specify that?
P.S.: Every line has the form "NAME SCORES WORD" we just care about NAMEs not ending in a vowel.
 
     
     
    