brain freeze: which is faster, contains or REFind

2007-11-01 Thread Larry Lyons
Hi all, Suffering from a post Halloween brain freeze here, but I cannot remember which would be faster: cfif foo Contains xyz or cfif refind(foo,xyz,1,false) thanks, larry -- Larry C. Lyons Web Analyst BEI Resources American Type Culture Collection http://www.beiresources.org email:

Re: brain freeze: which is faster, contains or REFind

2007-11-01 Thread Barney Boisvert
Those aren't equivalent. REFind does a case-sensitive RegEx search. find (which you didn't list) does a case-sensitive search. contains does a case-INsensitive search. I'd expect contains and findNoCase to be roughly equivalent, with REFindNoCase lagging slightly. Find and and REFind should be

Re: brain freeze: which is faster, contains or REFind

2007-11-01 Thread Ben Doom
re* functions are inherently slower than their find* equivalents. There's a startup cost for the RegEx engine. --Ben Doom Barney Boisvert wrote: Those aren't equivalent. REFind does a case-sensitive RegEx search. find (which you didn't list) does a case-sensitive search. contains does a