Kelemvor
2 years agoExpert
Is it possible to use Regex in a Group or AppliesTo filter?
Hi, I need to filter a specific number of machines into a group or datasource. The filter is any machine that has the letter ‘c’ as the second-to-last character before the first period in a name. ...
- 2 years ago
Hi Kelemvor,
The dots that need to be used as literal characters need to be escaped with \\, for your example its the dots outside the square brackets. Can you try the below?
"[^.]*c[^.]\\.[^.]*\\.[^.]"
Relevant mention in the AppliesTo article https://www.logicmonitor.com/support/terminology-syntax/scripting-support/what-is-lms#usage-notes