On Tue, 15 Jul 1997, Oskar Pearson wrote:
> > i checked the url -- the page is working. now that i know some basics, i
> > would like also to know how to make the _reg_exp case insensitive. thanks!
>
> Should be the same way that you do with all regular expressions:
> regex/i
>
> Will match "REGEX" "regex" "ReGeX" etc...
>
> from one of the default (don't know version) squid.conf's
> # TAG: cache_stoplist_pattern # case sensitive
> # TAG: cache_stoplist_pattern/i # case insensitive
Hmm, are you sure about this? I looked at the code for 1.1.11 and tried a
few things, and I don't think this works. The only two things which can
handle case-insensitive matching are cache_stoplist_pattern and
refresh_pattern. I also tried adding the /i after the term I wanted to
match, and that didn't work at all (it matched on /i just like you'd
expect... :-)
I haven't looked at 1.1.12 or 1.1.13 yet, so that functionality may have
been added in one of those.
There are hooks for case-insensitivity in aclParseRegexList() but there
isn't any way to turn them on shy of editing the source code. If you
don't mind doing that, it's a pretty easy change. In fact, if you want
all url_regex acls to be case-insensitive, just change the 0 in line 634
to 1...
Kevin
------------------------------------------------------------------------------
Kevin Fink <kevin@fink.com> N2H2
http://fink.com 1301 Fifth Avenue, Suite 1501
http://n2h2.com Seattle, WA 98101
------------------------------------------------------------------------------
(206) 971-1452 VOICE (206) 224-2890 FAX (206) 680-7666 PAGER
------------------------------------------------------------------------------
Received on Tue Jul 15 1997 - 17:50:06 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:46 MST