Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Attachment Table settings > Page filtering > Source (Regex) > Filter by page name @self
Attachment Table settings > Attachment filtering > Attachment name regex.*png|.*jpg

Screenshot

Image RemovedImage RemovedImage AddedImage Added

Wiki Markup Input

...

Info

Confluence is more limited on parameter values. In this case, | (pipe - used for regex or)is a reserved character, so it cannot be used.

Example Result

Image RemovedImage Added

Tip
titleSelecting attachments based on matching on more than one label

The above example shows how to match on one label. Constructing a regex to match attachments that have 2 or more specific labels is a bit more complicated.

  1. Set the Label match option to all
  2. Use a regex pattern similar to the following using xxx, yyy, and zzz as example labels:
No Format
2 labels:  .*(?:.*\b(?:(?:xxx)|(?:yyy))\b.*){2}.*
3 labels:  .*(?:.*\b(?:(?:xxx)|(?:yyy)|(?:zzz))\b.*){3}.*


...

Visit our full list of product examples for additional inspiration!Image Removed