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,365,371
Community Members
 
Community Events
168
Community Groups

Search for Double Quote - How to Escape Special Characters

Edited

I need to search for the exact word "Admin" (including double quotes). When I enter "Admin" in BitBucket search box, it only returns me Admin (not including doube quotes). 

SearchWord.PNG

2 answers

I am interested in searching for something specific in the code that happens to have quotes (") in them.  Searching without quotes returns too much data and is not usable. This is a big inconvenience. Could you suggest a way around this or add it as part of your feature in the future.

0 votes

Hi Hasti

As per Search for code in Bitbucket Server page says:

There are some restrictions on how searches are performed:

All punctuation characters are removed. !"#$%&'()*+,-/:;<=>?@[\]^`{|}~

As you can see " character is included in the list... so you cannot use it to search a term in Bitbucket.

 

Regards

Thanks Jack for your response. Is there anyway escape them somehow? (I found this link: https://community.atlassian.com/t5/Jira-questions/Escaping-special-characters-in-Jira-JQL-Search/qaq-p/351171) but I don't know how to apply it to my situation.

Like # people like this

The link that Jack posted now points to an unrelated page which does not have this information.

Like inger_klekacz likes this

Hi,

I am trying to search job: in all our repositories but currently, there is no way, per documentation to do it...

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events