Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [REBOL parse] Parsing AEIOU and sometimes Y

From: lmecir:mbox:vol:cz at: 2-May-2007 19:00

Hi Ed,
> Ok, my head is starting to hurt. Thanks for the suggestions everyone. > > First, a small correction from my original email: > >>> parse "yay" rule ; y = consonant ; y = consonant >>>
yes, that is what Gregg suggested...
> I believe all of the solutions provided successfully handle the > "sometimes y" case. I admit that I became a bit dizzy trying to work > through them. >
you should try the cut and paste (clipboard://) method
> To recap, the ultimate goal is to count V C pairs/groups, where V > equals an arbitrary number of vowels, and C equals an arbitrary number > of consonants, i.e., > > simple-VC-rule: [some vowel some consonant (m: m + 1)] >
the above rule does not count pairs, rule [(m: 0) some [vowel consonant (m: m + 1)]] does.