filter expresion in route with wildcard
Jari Weststrate
Posts: 3 ✭
in Stream
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
0
Answers
-
host.endsWith('.dmz.somewhere.nl')
OR
/\.dmz.somewhere\.nl$/i.test(host)
0