Re: regex, 1 off...

2007-12-17 Thread Rob Dixon
namotco wrote: > Let's say I want to search some text for "abc123". However, we know people can make typos and so they could have entered avc123 or abc223 or sbc123 or bc123 many other combinations... So I want to search for those possibilities as well. So how would I go about creating the pr

Re: regex, 1 off...

2007-12-17 Thread Jay Savage
On Dec 16, 2007 2:21 PM, namotco <[EMAIL PROTECTED]> wrote: > Let's say I want to search some text for "abc123". However, we know > people can make typos and so they could have entered avc123 or abc223 > or sbc123 or bc123 many other combinations... > So I want to search for those possibilities as

Re: regex, 1 off...

2007-12-17 Thread Todd
> However much depends on the actual data and the variations that you are > expecting. > > If you are searching for words like those used in the English language > then you may want to look at how spell checking software works. > Seems related to the algorithm like `find the longest common sub seq

Re: regex, 1 off...

2007-12-17 Thread Todd
Seems it's related to a more general question stated as `Given 2 sequences, find longest common sub sequence'. Many algorithm books have materials about this one. -Todd -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: regex, 1 off...

2007-12-16 Thread John W . Krahn
On Sunday 16 December 2007 11:21, namotco wrote: > > Let's say I want to search some text for "abc123". However, we know > people can make typos and so they could have entered avc123 or abc223 > or sbc123 or bc123 many other combinations... > So I want to search for those possibilities as well. S

regex, 1 off...

2007-12-16 Thread namotco
Let's say I want to search some text for "abc123". However, we know people can make typos and so they could have entered avc123 or abc223 or sbc123 or bc123 many other combinations... So I want to search for those possibilities as well. So how would I go about creating the proper regex? T