Re: squid regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Luca Ferrari said:
> On Thursday 12 May 2005 17:31 your cat walking on the keyboard wrote:
>
>> I have something a line like this for catching Windoze file extentions:
>> acl WinExecs url_regex -i \.exe \.bat \.dll \.zip \.gz \.scr \.rar \.wmv
>> \.mov
>> http_access deny WinExecs
>>
>
> That answers my question, thus it seems as the dot works as I said,

Not really as you said, it doesn't have to end in '.rar' and the '.' could
be filled with any character unless you escape it with a '\', thus '\.rar'
but will still not  only end in '\.rar' unless you tell it to check the
end only by appending a '$' to the RegEx, like so '\.rar$'

Here it works mostly like RegEx in awk, sed and grep. :)

--
Scott
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux