Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-13125

not working flags g modifier in regexp

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Incomplete
    • Icon: Trivial Trivial
    • None
    • 3.4.4
    • None
    • None

      Problem is simple:

      when i trying to add g modifier to regexp

      i getting this error message at element
      Item preprocessing step #2 failed: cannot perform regular expression match on value "47590;3172;0" of type "string": pattern does not match

      regexp: /(\d+)/g
      String: "47590;3172;0"

      You can check here
      https://regex101.com/r/jKLj7h/1

      it should work but its not working in zabbix.

      When i delete "g modifier", regexp working fine.

            Unassigned Unassigned
            malmstream Sergey Korchak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: