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 www.example.com?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 5 hours ago in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

18 views 0 3
Read article

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