Some help to write a regex block

Can someone help me to construct a regex block that will cover these:

server-18-154-109-69.ord58.r.cloudfront.net
server-18-172-134-120.ord56.r.cloudfront.net
server-18-172-134-2.ord56.r.cloudfront.net
server-18-172-134-49.ord56.r.cloudfront.net
server-18-64-182-171.ord58.r.cloudfront.net
server-18-154-109-69.ord58.r.cloudfront.net

xx-fbcdn-shv-01-ord5.fbcdn.net

Probably something like

^server-.*\.r\.cloudfront\.net$

We will need a few more examples here to avoid creating a filter that might be to broad, otherwise:

^xx-fbcdn-.*\.fbcdn.net$
1 Like

Thank you. I tried your first one using https://regexr.com/ but nothing matched.

EDITED: I had to remove the ^ and the $ in order to get it to work ... is that expected?

server-.*\.r\.cloudfront\.net

This may help:

https://docs.pi-hole.net/regex/tutorial/

1 Like

Thanks for the help. I tried another regex tester and it accepted them with the anchors

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.