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

not working g modifier in regexp

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0 (plan)
    • 3.4.4
    • Documentation (D)
    • None
    • Linux gamma 2.6.32-26-pve #1 SMP Mon Oct 14 08:22:20 CEST 2013 i686 GNU/Linux

      Virtual
    • Sprint 27, Sprint 28, Sprint 29, Sprint 30
    • 0

      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.

      Last issue i was thinking i sovled but its not.

            natalja.cernohajeva Natalja Cernohajeva (Inactive)
            malmstream Sergey Korchak
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: