This post originated from an RSS feed registered with .NET Buzz
by Jonathan Cogley.
Original Post: Programming Contest by EggHeadCafe ... just Regex?
Feed Title: Jonathan Cogley's Blog
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/jcogley/Rss.aspx
Feed Description: C#, Test Driven Development, Remote Scripting, CShark! :)
Rafael Munoz pointed me towards a Programming Contest By EggHeadCafe in his latest MVP Update Newsletter. Reading through their criteria ...
<snip> 2. All occurrences of an in a sentence must be replaced by un. 3. Replace all occurrences of au in a sentence with oo 4. Inside any word (ie., after the first character): replace all a's not followed by whitespace with the letter e. Thus, the word a by itself would not be translated to e replace all o's in a word by u. Example: Doh becomes Duh. </snip>
It sounds like a simple console application using a few Regular Expressions would do it ... (and obviously an adhoc test method to drive the results TDD style) ... am I missing something?