Getting Data In

host_regex syntax for SMB share?

Champion

I need a syntax example for host_regex to pull the hostname out of a share like the following:

[monitor://\\norcal_server\c$\Windows\System32\LogFiles]
0 Karma

Ultra Champion

Since the messageboard seems to be rather moody today, I'm having trouble writing HTML-specific characters at the moment, like < or >, so here goes.

\[monitor\:\/+\\+(?< HOST >[^\\]+)\\

You'd have to remove the spaces surrounding HOST..

or perhaps, even simpler

\\{2}(?< host >[^\\]+)\\

Hope this helps,

Kristian

0 Karma