Regular Expressions 101

Community Patterns

Match Windows filename in any path but only C: D: and F: drives

1

Regular Expression
Java 8

"
^[c-d|f]:\\[\\\S|*\S]?.*fnplicensingservice64.exe$
"
gmi

Description

Used for Service Discovery in vRealize Operations. Use case is a service that can be installed on any path, but we only want to discover and monitor services installed on standard production drives (C, D or F). Filename will always be the same.

Submitted by Various - 2 years ago