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

regsub does not use proper numbering for capture groups

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Incomplete
    • Icon: Trivial Trivial
    • None
    • 5.0.1
    • None
    • None
    • Docker, Centos

      Steps to reproduce:

      1. use regsub on a macro value such as {ITEM.LASTVALUE}
      2. see that \1 returns the entire matched expression and \2 returns the first capture group

      Result:

      This expression returns the data in the ([^\"]*) expression
      Expected:
      \1 should return the first capture group, not \2

            zabbix.support Zabbix Support Team
            khumphreys Kevin Humphreys
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: