Incorrect pattern in the macro function examples in Documentation

XMLWordPrintable

    • Type: Documentation task
    • Resolution: Fixed
    • Priority: Trivial
    • 5.2 (plan)
    • Affects Version/s: 5.0.0
    • Component/s: Documentation (D)
    • None

      *Received value*
      MySQL crashed errno 123
      *Macro*
      {{ITEM.VALUE}.regsub("^([A-Z]).*([0-9])", " Problem ID: \1_\2 ")}
      *Output*
      Problem ID: MySQL_123

      However,it will not do as what we have expected.

      *The correct Macro*
      {{ITEM.VALUE}.regsub("^([a-zA-Z])[^0-9]([0-9]+)", " Problem ID: \1_\2 ")}
      {{ITEM.VALUE}.regsub("^([a-Z])[^0-9]([0-9]+)", " Problem ID: \1_\2 ")}
      {{ITEM.VALUE}.regsub("^(\w+)[^0-9]([0-9])", " Problem ID: \1_\2 ")}

       

            Assignee:
            Marina Generalova
            Reporter:
            孙悟空
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: