Thanks Claude, I already have inversions, missing letters and doubling
already taken care of. :)
This has been a neat little exercise...

-----Original Message-----
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 16, 2008 11:00 AM
To: CF-Talk
Subject: Re: Friday CF Puzzler...

I would create a regExp for each character, in a structure ie:
RE['i'] = "[i89okju]"
RE['b] = "[bvghn]"
RE['m] = "[jk,n]"
.....
replace every character by it's equivalent regexp ibm =>
[i89okju][bvghn][jk,n] And search using this expression

But you should also take care of inversions, probably even more common than
next keys typos,
ie: teh instead of the, etc.
So each regExp should also have the neighboring character, ie:
RE['i'] = "[i89okjub]"
RE['b] = "[bvghnim]"
RE['m] = "[jk,nb]"

--
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED]) Thanks.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305426
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to