in reply to Another regex to solve ...
If you define vowel as one of 'a', 'e', 'i', 'o' and 'u' (because I know some other monks will point out that I'm being anglocentric :)), a regex that fits your criteria is:
/(?<![aeiou])[aeiou]p\b/Please adjust for case sensitivity as necessary.
Edit: Did you mean two vowels in a row or the same vowel twice before the 'p'? The regex above solves the former, but not the latter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Another regex to solve ...
by pat_mc (Pilgrim) on Aug 18, 2011 at 16:38 UTC | |
by AR (Friar) on Aug 18, 2011 at 16:46 UTC | |
by pat_mc (Pilgrim) on Aug 18, 2011 at 16:50 UTC | |
by AR (Friar) on Aug 18, 2011 at 16:58 UTC |