I have a string to match SNMP traps. On receive this one:
ccmHistoryEventCommandSource.65 commandLine
ccmHistoryEventConfigSource.65 commandSource
ccmHistoryEventConfigDestination.65 running
I try to match trigger by this regexp:
snmptraps.regexp(ccmHistoryEventCommandSource\..*)
It doesn't match. If I remove "\." it matches:
snmptraps.regexp(ccmHistoryEventCommandSource.*)
A bug?
Also noticed, that if the string is multiline, it doesn't match even in format:
line1.*line2.*line3
line1\nline2\n\line3 doesn't work too, of course.
though regexp(line1)®exp(line2)®exp(line3) works, but that's not, what I expect to get exact.
ccmHistoryEventCommandSource.65 commandLine
ccmHistoryEventConfigSource.65 commandSource
ccmHistoryEventConfigDestination.65 running
I try to match trigger by this regexp:
snmptraps.regexp(ccmHistoryEventCommandSource\..*)
It doesn't match. If I remove "\." it matches:
snmptraps.regexp(ccmHistoryEventCommandSource.*)
A bug?
Also noticed, that if the string is multiline, it doesn't match even in format:
line1.*line2.*line3
line1\nline2\n\line3 doesn't work too, of course.
though regexp(line1)®exp(line2)®exp(line3) works, but that's not, what I expect to get exact.