regsub does not use proper numbering for capture groups

XMLWordPrintable

    • Type: Problem report
    • Resolution: Incomplete
    • Priority: Trivial
    • None
    • Affects Version/s: 5.0.1
    • Component/s: None
    • None
    • Environment:
      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

            Assignee:
            Zabbix Support Team
            Reporter:
            Kevin Humphreys
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: