lua-users home
lua-l archive

Re: folding double vowels?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, May 22, 2013 at 7:42 PM, Petite Abeille
<petite.abeille@gmail.com> wrote:
> print( ( 'aaaa aaa aa a aaaaa' ):gsub( '([aeiou]?)([aeiou]?)', '%1' ))
I'd have thought that you could at least simplify to the following:
print( ( 'aaaa aaa aa a aaaaa' ):gsub( '([aeiou])[aeiou]', '%1' ))

AltStyle によって変換されたページ (->オリジナル) /