[Chicago-talk] Using a hash in a regex
Kent Cowgill
kent at c2group.net
Thu Jul 13 15:04:30 PDT 2006
On Thu, 13 Jul 2006, Jay Strauss wrote:
> What is the advantage of index() to
> regex?
You could benchmark the two approaches. With a small
enough list of files, the advantage may not be that great. The docs touch
on this:
index STR,SUBSTR,POSITION
index STR,SUBSTR
The index function searches for one string within another, but
without the wildcard-like behavior of a full regular-expression
pattern match.
More information about the Chicago-talk
mailing list