Regular expression to match all words ending with and containing three 'e's

I am trying to write a regular expression that matches all words so that the only vowel is e and there are exactly three e's in the word, am writing this in python. I tried writing

(?= e){3}[^aiou]*

but it didn't work.


You want three e's, such that the stuff in between consists of non-vowels. You want a word, i.e. stuff that has a word boundary on either side.

Thus: a word boundary, zero or more non-vowels, an e, zero or more non-vowels, an e, zero or more non-vowels, an e, zero or more non-vowels, and a word boundary. But we can simplify that by grouping up the repeated pattern: a word boundary, three times: (zero or more non-vowels, an e), zero or more non-vowels, and a word boundary.

In regex-speak: \b(?:[^aeiou]*e){3}[^aeiou]*\b.

Need Your Help

Bypass Login of a JSP page

jsp autologin

I have a Link which requires authentication to open it The authentication page is in JSP on the Server Want to bypass that page or autocomplete it automatically so to redirect to the link directly....

How to turn jQuery/Javascript functions into methods

javascript jquery function methods object

Could anyone explain how to turn functions into methods and the variables into parameters of an object in jQuery/Javascript?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.