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

Re: [FWP] Regex for the last vowel/diphthong in a word



On Mon, Aug 02, 1999 at 03:51:51PM -0400, Stevie Strickland wrote:
> Okay, I was trying to come up with a regex for the last vowel/diphthong
> in a word that is in this set: a, o, u, au.  The best regex I've come
> up with so far is this:
> 
> /([aou]u?)([^aou]*)$/

[snip]

Someone's already mentioned it to me, so I'll go ahead and post this
before anyone says it again :)

Yes, I know the regex above also catches "ou" and "uu", but as this
was for my own personal purposes, not something I plan to distribute,
and I would know the shortcomings of my program and what it could do,
I wasn't too worried about this... though if someone can show me a
regex that doesn't catch those two, I would be very greatful... I
haven't been able to do it myself and have it do the rest correctly :p

Thanks,
Stevie

-- 
Webster's Dictionary definition of Windows95:
Windows95: <win-doz-nin-te-fiv> n.
    32 bit extensions and a graphical shell for a 16 bit patch to an 8
    bit operating system originally coded for a 4 bit microprocessor,
    written by a 2 bit company, that can't stand 1 bit of competition.

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe