Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-4370

Support using pipe "|" and backslash "\" in macro parameters for regular expressions, wiki links, etc.

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      The attachments macro has a patterns field which is supposed to allow matching via regular expressions. Unfortunately, the way confluence handles characters keeps this from being useful.

      It can be used to do something simple like "list only documents ending with doc".
      Example: patterns=.*doc (works correctly)

      but anything more useful like "list all documents except word and excel documents" cannot be done:
      Example: patterns!=.*\.(doc)|(xls) (completely fails)

      The reasons this fails are listed:
      A) We cannot use !=
      B) We cannot use \ (backslash) anywhere in the regular expression (which makes it hard to do anything halfway complex)
      C) We cannot use | (pipe) anywhere because confluence uses it as the seperator for fields for macros

      The basic functions that someone might use this for (listing all files except those of a certain type or types) do not function because the regular expression handling does not work correctly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              c1bca5fe8954 Aaron Zeckoski
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: