You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
Thanks
Lele
'[\\(]?[0-9]{3}[\\)]?[\s|\-]?[0-9]{3}[\-][0-9]{4}' \ (this one is phone pattern search)
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:
Cheers
Sloan
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?
/[0-9]{3}?[0-9]{3}?[0-9]{4}/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you ever find a way to get the exact match on phone number search syntax?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I ended up using something similar to this /[0-9]{3}?[0-9]{3}?[0-9]{4}/ but added dashes after the ?
/[0-9]{3}?-[0-9]{3}?-[0-9]{4}/
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.