From: Paul Lutus Date: 2006-11-14T02:20:09+09:00 Subject: Re: regular expression too big Ken Bloom wrote: / ... >> I think this (e.g speed improvement) would have been true in Perl also. >> > > His regex isn't anchored to the beginning and end of the string. Yes, I see that now. From the appearance of the data, it looks as though he is matching whole words, but that's only an assumption on my part. > This makes hashes useless for the kind of comparison he seems to want to > perform. Yes, unless he is matching whole words, he is stuck with regexes. There is very likely to be a refactoring for this problem, and it would have to start with a clear statement of the problem to be solved. -- Paul Lutus http://www.arachnoid.com