<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
creationComplete="cc()">
<mx:Script>
<![CDATA[
private function cc():void
{
trace(['a', 'b', 'c', 'c', 'd','e', 'e', 'e', 'e', 'e', 'f', 'e', 'f', 'e', 'f', 'a', 'a', 'a', 'f', 'f', 'f'].join(" ").replace(/(.) \1((?: \1)+)/g, "$1 $1 <span>$2 </span>"));
}
]]>
</mx:Script>
</mx:Application>
Thursday, July 10, 2008
Brain teaser :)
What better way to kick off the new blog than with an answer to Dustin Diaz' Programming Brain Teaser?
Subscribe to:
Post Comments (Atom)


1 comments:
But can you do it in one line? ...damnit... nevermind.
Post a Comment