Re: [squid-users] pazzled about url_regex

From: Henrik Nordstrom <[email protected]>
Date: Tue, 06 Feb 2007 22:03:36 +0100

tis 2007-02-06 klockan 20:34 +0800 skrev Felix New:
> ALL:
>
> i know abou a little perl regular expression, but i'm puzzled about
> url_regex in squid.conf when i use perl regular expression syntax, is
> anythion diff?
>
> is url_regex support ! --NOT,&& -- AND, () -- Group?

Quid uses POSIX.2 modern regex, aka extended regex, the same as egrep or
grep -e. This is slightly different from perl regex.

"man 7 regex"
and
"man egrep".

The exact capabilities depends on the regex library of your OS. Most
regex libraries have extensions beyond the POSIX specifications.

At least braket expressions [...] , grouping (...), repetition ranges x+
x? x{..} and alternatives x|y is supported. Also the special symbols $
and ^, and escaping using the \ character.

Regards
Henrik

Received on Tue Feb 06 2007 - 14:03:41 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST