[squid-users] correct regular expression to use to capture all

robert k Wild robertkwild at gmail.com
Sun Jul 9 15:08:46 UTC 2023


Thank you guys,

Tbh I didn't think regex would be more CPU intense so thanks for that

On Sun, 9 Jul 2023, 16:04 Matus UHLAR - fantomas, <uhlar at fantomas.sk> wrote:

> On 08.07.23 13:07, robert k Wild wrote:
> >True but I don't want to create two ACL lists, one for "ssl name" and one
> >for "ssl name regex"
>
> try only create one for ssl name. You rarely need regex.
> performance will thank youl
>
> >On Sat, 8 Jul 2023, 12:57 Matus UHLAR - fantomas, <uhlar at fantomas.sk>
> wrote:
> >
> >> On 07.07.23 21:13, robert k Wild wrote:
> >> >i know ive been talking about this before but i want to understand why
> i
> >> >cant use this regex
> >> >
> >> >(^|.*)redshift3d.com$
> >> >
> >> >instead i have to use this
> >> >
> >> >(^|\.)redshift3d.com$ OR
> >> >
> >> >(^|\.)redshift3d\.com$
> >> >
> >> >for strings
> >> >
> >> >www.redshift3d.com
> >> >activate.redshift3d.com
> >> >redshift3d.com
> >>
> >> AFAIK "dstdomain .redshift3d.com"
> >>
> >> matches the same, but without complicated, cpu-expensive and hardly
> >> readable
> >> regular expressions
>
> --
> Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> Depression is merely anger without enthusiasm.
> _______________________________________________
> squid-users mailing list
> 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/20230709/d20d5599/attachment.htm>


More information about the squid-users mailing list