an interesting challenge.
Joshua Zeidner
jjzeidner at gmail.com
Tue Apr 4 12:00:01 MST 2006
oh btw- if you are globbing all the dictionaries there will be multiple
entries( english + british ) so if /usr/share/dict contains more than one
dict file( which is standard ), I believe your word count is wrong...
jmz
On 4/4/06, Joshua Zeidner <jjzeidner at gmail.com> wrote:
>
> Sorry, I patented the idea of using regular expressions for solving
> Technomages problem. You owe me 4 million dollars.
>
> jmz
>
>
> ;you can't expect a linux geek to back down from a regex challenge
>
>
>
> On 4/4/06, Jeremy C. Reed <reed at reedmedia.net> wrote:
> >
> > On Tue, 4 Apr 2006, Josh Zeidner wrote:
> >
> > > josh at zeidner:/usr/share/dict$ perl -n -e 'if ( $_ =~ /\A[bdfeca]+\Z/ )
> > > { print "$_" }' < american-english
> >
> > Be sure to be at least four characters.
> >
> > > > using bdfeca:
> > > > construct word strings in a list using only these letters in any
> > > > combination 4 characters or longer. use of the number 1 as a space
> > filler
> > > > is permitted.
> >
> > I am not sure what the "space filler" means. I guess it means putting
> > multiple words together.
> >
> > > > example:
> > > > dead1beef
> >
> > Without using any "space filler" ...
> >
> > $ cat /usr/share/dict/* | egrep -a '^[bdfeca]{4,}$' | sort -u | wc -l
> > 56
> >
> > Jeremy C. Reed
> >
> > echo ':6DB6=88>?;@69876tA=AC8BB5tA6487><' | tr '4-F' 'wu rofIn.lkigemca'
> > ---------------------------------------------------
> > PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> > To subscribe, unsubscribe, or to change you mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.plug.phoenix.az.us/pipermail/plug-discuss/attachments/20060404/8f9b19f6/attachment.htm
More information about the PLUG-discuss
mailing list