Hi,
I would appreciate your help with a Regex for a Bob Swift Attachments Table macro.
I am trying to display the attachments on all pages that contain the word, for example "help" in the title.
Thanks!
Hi Debra,
The Attachment Table macro contains a number of parms for different regex values as you probably noticed in the macro editor.
The parameter you want to look at for the attachment name is "Attachment name regex" and you want to specify a value of ".*help.*" without the double quotes to find all attachments with "help" in the name. The dot matches any single character and the * says to match on 0 or more instances. So .*help.* will match any number of characters before help and any number after help so your attachment name may begin with help, end in help, or have help in the middle some place.
Depending on which spaces and pages you want to search across in your instance you can use the other regex parms as well in combination with the attachment name to widen the search out past the current page.
Some parms, such as "Space key or space name regex", have a special value you can pass. @all searches all spaces and @self searches the current space the page is in.
Here is a little more help on the regex:
How to use regular expressions
I hope this helps.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.