is there a way to test find output on CLI before you start changing something or using in script?
Just to check if your query is right.
where and regex
I have tried to use regex but it looks id doesn't work or I'm missing something.
work
/ip route print where comment="location1-server1"
don't work
/ip route print where comment="location1-.*"
but I have found this and it works
1. /ip route print where comment~"location1"
2. /ip route print where comment~"location1" = false - list all except what contain location1
3. /ip route print where comment~"location1" = true - same as 1.