Regex
Posted: Sat May 11, 2013 10:01 am
I'm kind of struggeling with the regex syntax.
i;ve managed te obviouse "all" : .*
and grouping by first characters of the name : ^Site-1.*
but i'm kind of lost on the rest. eg. how to exclude just two hosts from the .* expression or an regex to match characters in the middle (eg regex for 'router' to match the hosts Site1-router-881 and Site-2-router-887)
Is there an simple tutorial for regex as nagios uses it?
i;ve managed te obviouse "all" : .*
and grouping by first characters of the name : ^Site-1.*
but i'm kind of lost on the rest. eg. how to exclude just two hosts from the .* expression or an regex to match characters in the middle (eg regex for 'router' to match the hosts Site1-router-881 and Site-2-router-887)
Is there an simple tutorial for regex as nagios uses it?