Search squid archive

Re: regex for normal websites

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

 



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@xxxxxxxxx

Web: https://ngtech.co.il/

My-Tube: https://tube.ngtech.co.il/

 

From: squid-users <squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of robert k Wild
Sent: Wednesday, 27 July 2022 21:03
To: Antony Stone <Antony.Stone@xxxxxxxxxxxxxxxxxxxx>
Cc: Squid Users <squid-users@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: regex for normal websites

 

Makes sense thanks Antony

 

On Wed, 27 Jul 2022, 18:59 Antony Stone, <Antony.Stone@xxxxxxxxxxxxxxxxxxxx> 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$

Well, that means "start of line, something or nothing, then '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$"


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@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux