an interesting challenge.

Kevin Brown kevin_brown at qwest.net
Wed Apr 5 20:24:29 MST 2006


> egrep -i '^[^e]*(e[^e]*){3}[^e]*$'
> 
> Not only is it slightly shorter and more readable, but it's a lot easier 
> change it to search for of 'e' exactly n times.

If I'm reading the regexp correctly you are excluding words that start 
with e or contain more than one e in a row.


More information about the PLUG-discuss mailing list