Ad Widget

Collapse

regexp point problem in 1.4.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alxzed
    Junior Member
    • Sep 2007
    • 7

    #1

    regexp point problem in 1.4.2

    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)&regexp(line2)&regexp(line3) works, but that's not, what I expect to get exact.
    Last edited by alxzed; 30-11-2007, 16:55. Reason: add comments
Working...