Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Search for patterns

Is there a way to search Confluence for patterns such as SSN, a date or credit card number format? I have tried the below to search for numeric patterns and get no results. I thought you could use grep to construct a pattern search string.



'[\\(]?[0-9]{3}[\\)]?[\s|\-]?[0-9]{3}[\-][0-9]{4}' \   (this one is phone pattern search)

1 answer

0 votes
Sloan N_ B_ Community Leader Sep 08, 2022

Hi Lele

Are you on Confluence Cloud or on Confluence Data Center / Server? In any case there are some operators helping you searching more detailed in the advanced search. Here is the documentations:


I think it is Cloud. I will check out the links. Thank You!

I was able to get some results using the below but it is not exact. The below is a phone number search. Since it didn't seem to like the hyphen, I put the ? because I do not want it to find a 10 number string and return it. I wanted to let it know there should be something between the number strings. Now it returns as if it is reading them separately. It will find 3 numbers in one doc and 4 in another. Is there a way to make it an exact match?




Suggest an answer

Log in or Sign up to answer

Atlassian Community Events