Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to search Confluence using regex?

Yali Izzo June 14, 2019

I'm trying to filter out personal information from our confluence server, and because of the nature of the info, I can't always just search a single term. CQL is a good first step, but Regex would really help. So far, though, I haven't been able to get it to work, although I've read that it is implemented. Any suggestions?

1 answer

0 votes
Aleksandr Zuevich
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.
June 15, 2019

Hi,

You should be able to search with /yourRegex/, e.g. /r.*h/. I've just checked - it works. 

Does it help?

Yali Izzo June 17, 2019

Hi,

Thanks for the response - It could be that the regex string I'm using has something confluence doesn't support? I'm trying to use something like /.+@(.+)\.(com|org|net)/ to search for email addresses.

I'll keep trying, though, good to know it should be working.

Thanks

Aleksandr Zuevich
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.
June 17, 2019

What if try /.+\@.+\.(com|org|net)/ ?

Yali Izzo June 17, 2019

Still nothing, unfortunately. It's probably worth noting I'm working with a server-based version of Confluence, though I don't know what changes that would have on it.

Aleksandr Zuevich
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.
June 17, 2019

I tried at my confluence instances and noticed: if I put /.+\@.+\.(com|org|net)/ to quick search form, it searches, but when I put the regex to the search input on the search page it doesn't work.Capture.PNG

Yali Izzo June 17, 2019

Capture.PNG

Unfortunately, it still doesn't seem to work. It could be something to do with our setup of Confluence, at this point

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events