We have updated our Terms of Service, Code of Conduct, and Addendum.

filter expresion in route with wildcard

Hi,

Maybe a simple answer (i hope). For a route we want to filer the host.name, but there are a lot of host in the list so a wildcard is the best way to filter.

So doing like 'drnms10*.dmz.somewhere.nl' in the filter for the servers matching with this wildcard.

But with a filter 'host == 'drnms10*.dmz.somewhere.nl'' wil not work. What is the best way to do this?

I tried with a C.lookup and a lookup file.. it wil work. But stil have top maintain a list. And is a C.lookup not very slow in a filter?

Thanks for the answer :)

greets

Jari

Tagged:

Answers

  • David Maislin
    David Maislin Posts: 229 mod
    edited November 28

    host.endsWith('.dmz.somewhere.nl')

    OR

    /\.dmz.somewhere\.nl$/i.test(host)