Using the Highlight in Visual Overview it's possible to make a search functionality. By typing text in a field coupled to a variable you can then use the Regex on the Highlight to filter on the search phrase.
Currently I have following regex, where ServiceName is the variable being filled in on a search field.
Name=(.*[Var:ServiceName].*)
This works fine for searching, but when I empty the search field, all shapes are highlighted.
I'd need a regex that allows me to search for a word, but doesn't match an empty string.
Nothing I find online seems to match what I need.
Anyone who's good at regex?
I did a workaround by setting the initial value of the variable to 'Select Service' and to add a Clear Filter button next to the filter field which fills the variable with 'Select Service'.
Since there are not services with the name 'Select Service' it's not highlighting any of the service objects