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

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

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.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi 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...

274 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you