Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,457,745
Community Members
 
Community Events
176
Community Groups

repository include/exlude files regex expression in repository demo for sub directory

repository include/exlude files regex expression in repository demo have 3 directory and each directory multiple sub directory , .*/dir/subdir/test/.*  .

please suggest correct regex to get files or folders.

1 answer

0 votes

Hello @preeti singh

Could you share some examples of which files you wanted to match and which ones you don't want?

I need that to really understand the scenario there so I can help you to build the REGEX for it.

 

I have a couple of examples to share:

.*/filename
  • This one will match any file called "filename" in any repository folder that is NOT root. It needs to have a folder under it <DIR>/filename
.*/folder1/folder2/folder3/.*
  • This one will match any file inside folder3 or subfolders, but only if folder3 is inside a structure like <DIR>/folder1/folder2/
.*/(folder1|folder2)/.*
  • This is like .*/folder1/.* and .*/folder2/.* matches together. Anything inside the folders <DIR>/folder1 or <DIR>/folder2 will match the criteria.

 

I hope that helps to clarify the REGEX expression a little bit.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events