Search for parentheses in Bitbucket code search Edited

How can I search for parentheses in Bitbucket code search over several repositories? I want to search for occurrences of a function call. The function has two overloads: one with parameters and one without. I want to search for places where the overload without parameters is used, by including the parentheses in the search, like "MyFunction()". There are dozens of repositories, so cloning is not really an option.

De code search documentation says:

  • All punctuation characters are removed. !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
  • Regular expressions in queries are not supported, but you can search for special characters.

Unfortunately it doesn't specify how I can search for special characters, and if parentheses can be searched for as special characters.

1 answer

0 vote

Hi George! From your message I'll assume you're using Bitbucket Server, so please let us know if this is not actually your case.

I've been discussing this with my colleagues and looks like at the moment it won't be possible to search for the parentheses. You can search "MyFunction" and follow with some search operators like (AND, OR, NOT, etc) which are allowed though.

I also found this Feature request that you might be interested in, you can vote for it at BSERV-8782.

Also, searching over several repositories won't be possible, currently only the default branch is searchable.

Hope this answers your questions, George!

Cheers,

Ana 

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 Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

71 views 0 11
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