It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hello,
Trialling Confluence for the business currently, which would be used for technical documentation. Some pages will have attachments e.g. scripts, that I would like to view using the attachments macro. However, the macro also shows all of the pictures embedded in the page too.
Is there a way to exclude pictures from the attachments macro? I have tried to use the regex filter ^.*png, but this still displays PNG images. Is there a regex expression that will achieve what I want?
Thank you for your help
Stuart
Hello,
Thank you for your reply.
A number of people will be updating the Wiki with information and potentially uploading files, so this solution isn't really suitable for our situation.
Thanks again
Stuart
Hi, sorry for necroing this thread, but you may try
^((?!\.png).)*$
as seen at https://bobswift.atlassian.net/wiki/spaces/info/pages/44695583/How+to+use+regular+expressions
If you want to hide all files that end with png (say maybe someone accidentally removes the dot before the file extension when renaming), then
^((?!png$).)*$
would be the expression.
Also the file extension might be in caps (PNG) but regex is usually case sensitive (on Confluence it is) so the final solution is
(?i)^((?!png$).)*$
where (?i) in front of expressions will make sure it searches for upper and lowercase variants too.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreHi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.