How can I find links that contain a certain string inside of them?

Greg Kullberg September 14, 2016

This question is in reference to Atlassian Documentation: Confluence Search Syntax

I want to find all the pages that contain a certain string within them.

Recently we changed URLs on a site, and we want to change all of the outgoing links on Confluence to the new site URL.

Is it possible to do a search which returns all pages that contain a hyperlink with a specific word?

1 answer

1 accepted

0 votes
Answer accepted
Jonas Andersson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 14, 2016

No, no search and replace, but simply searching the url (and all versions of it, like FQDN and short-names) within brackets should return all pages. If you can afford downtime i would simply shutdown confluence, dump the database, and sed replace all urls, and reimport the database again. Once you restarted confluence it might need a re-index too.

Greg Kullberg September 15, 2016

Thanks Jonas. I'm not sure I follow the "in brackets" part. What would my search string look like if I wanted to find links to www.example.com?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events