On Wed, Jan 10, 2007 at 10:32:54AM -0500, Jim Magnuson wrote:

> For purposes of doing some processing on a Finnish corpus, I want to  
> convert repeated vowel strings to a single occurrence of the  
> uppercase form of the vowel. That is:
> 
> "aa" -> "A"
> "ii" -> "I"
> "oo" -> "O"
> 
> Is it possible to do this without specifying separate substitutions  
> for each vowel?

s/([aeiou])\1/uc $1/ge

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to