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

Matus UHLAR - fantomas uhlar at fantomas.sk
Sat Jul 8 11:57:35 UTC 2023


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.
Despite the cost of living, have you noticed how popular it remains?


More information about the squid-users mailing list