Relevance help with subnets

(imported topic written by rharmer91)

I have this -

(false or exists true whose (if true then (exists (addresses whose (it as string != “0.0.0.0”) of ip interfaces whose (loopback of it = false) of network) whose (it as string as lowercase contains “162%2e96%2e28” as lowercase)) else false))

And I’m curious what the best way to include multiple subnets. You see here 162.96.28(.x), and I’d like to add 4 more subnets to this list (162.96.29, 162.96.14, 162.96.15)

So maybe if they are squential like that I could use some

brackets

? I know I could use an OR and just make it work, but it’s not pretty then :slight_smile:

Thanks,

Rich

(imported comment written by jessewk)

Is this prettier?

size of intersection of

(

set of

(

preceding texts of lasts “.” of

(

it as string

)

)

of addresses of ip interfaces of network ; set of

(

“162.96.28” ; “162.96.29” ; “162.96.14” ; “162.96.15”

)

)

0

(imported comment written by rharmer91)

That is almost sexy :slight_smile: