Re: [squid-users] Regex Problem - Squid 3.0STABLE10

From: Jeff Gerard <mysubscriptions_at_shaw.ca>
Date: Mon, 17 Nov 2008 15:00:06 -0800

Thanks so much...I'll definitely give this a try...but...

apparently I'm not sure what to do here..

Should I simply
set LDFLAGS="-lpcreposix -lpcre"
then run my ./configure?
or??

Sorry if it's a dumb question...

----- Original Message -----
From: Henrik K
Date: Friday, November 14, 2008 11:38 pm
Subject: Re: [squid-users] Regex Problem - Squid 3.0STABLE10
To: squid-users_at_squid-cache.org

> On Fri, Nov 14, 2008 at 10:00:24PM -0600, Jeff Gerard wrote:<BR>> > I have an acl that I use to block ad sites. One of the
> regex's that I use is:
> > "_ad_". I have discovered that I need to tweak this
> regex to fail when it
> > finds the following pattern:
> http://something.com/path/some_ad_test.js>
> > I modified my regex as follows:
> > _ad_(?!test) which should work as far as I can tell, however,
> when I reload
> > squid, I get the following error:
> > squid.conf line 644: acl Deny_ADs url_regex -i "/etc/squid/deny_ADs"
> > aclParseRegexList: Invalid regular expression '_ad_(?!test)':
> Invalid
> > preceding regular expression
>
> You are trying PERL compatible regexp. Squid doesn't support
> that by
> default, it uses the basic system library.
>
> Easiest workaround is to compile Squid with PCRE library:
>
> LDFLAGS="-lpcreposix -lpcre"
>
> It may also reduce memory leaks and speed up things if you have
> old/badsystem regex.
>

---
Jeff Gerard
Received on Mon Nov 17 2008 - 23:00:09 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 18 2008 - 12:00:03 MST