[squid-users] regex for normal websites

ngtech1ltd at gmail.com ngtech1ltd at gmail.com
Thu Jul 28 06:29:04 UTC 2022


I would assume that if you want to match something like dstdomain you would use:
(^(.*\.)?)adobe\.com$
 
Or two regex:
\.adobe\.com$
^adobe\.com$
 
I like very much: https://rubular.com/
 
Which allows you to see visually the matches.
 
Eliezer
 
 
 
----
Eliezer Croitoru
NgTech, Tech Support
Mobile: +972-5-28704261
Email: ngtech1ltd at gmail.com <mailto:ngtech1ltd at gmail.com> 
Web: https://ngtech.co.il/
My-Tube: https://tube.ngtech.co.il/
 
From: squid-users <squid-users-bounces at lists.squid-cache.org> On Behalf Of robert k Wild
Sent: Wednesday, 27 July 2022 21:03
To: Antony Stone <Antony.Stone at squid.open.source.it>
Cc: Squid Users <squid-users at lists.squid-cache.org>
Subject: Re: [squid-users] regex for normal websites
 
Makes sense thanks Antony
 
On Wed, 27 Jul 2022, 18:59 Antony Stone, <Antony.Stone at squid.open.source.it <mailto:Antony.Stone at squid.open.source.it> > wrote:
On Wednesday 27 July 2022 at 19:25:46, robert k Wild wrote:

> nice one thanks Amos
> 
> i dont understand as in regex the terms
> 
> ^ - start of line
> . - any single character
> * - repetition of character before

Correction: zero or more instances of the character before

> $ - end of line
> 
>  so going by this it should be
> 
> ^.*adobe.com <http://adobe.com> $

Well, that means "start of line, something or nothing, then 'adobe.com <http://adobe.com> ' and 
end of line".

So, it basically just means, "adobe,com at the end of the line"


Thus, the same as "adobe.com <http://adobe.com> $"


Antony.

-- 
This space intentionally has nothing but text explaining why this space has 
nothing but text explaining that this space would otherwise have been left 
blank, and would otherwise have been left blank.

                                                   Please reply to the list;
                                                         please *don't* CC me.
_______________________________________________
squid-users mailing list
squid-users at lists.squid-cache.org <mailto:squid-users at lists.squid-cache.org> 
http://lists.squid-cache.org/listinfo/squid-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20220728/99a1ed6e/attachment-0001.htm>


More information about the squid-users mailing list