Solved

eclispe search for pattern

Posted on 2014-01-29
3
343 Views
Last Modified: 2014-01-29
Hi,

I would like to search for *** but eclipse searching for *.*.* as attached which i do not want. how to fix.
please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
  • 2
3 Comments
 
LVL 19

Expert Comment

by:Ken Butters
ID: 39818708
If I understand you correctly you are wanting to search for a string "***" within the eclipse editor.

It may be possible that your search request is being done with the regular expresssion box checked.

if you want to just search for a string of 3 asterisks... make sure the regular expression box is unchecked in the find/replace dialog box.
0
 
LVL 7

Author Comment

by:gudii9
ID: 39818733
It is unchecked only as attached. Please advise
PatternSearch2.jpg
PatternSearch.jpg
0
 
LVL 19

Accepted Solution

by:
Ken Butters earned 500 total points
ID: 39818775
Sorry... I thought you were doing find/replace search within a file.

That particular input box is expecting * to represent a wildcard.  In  this case you have to escape the asterisk with a backslash.

Use the following as your search string and it will work as you expect it to

\*\*\*

Here is a reference:

http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-45.htm

Pay particular attention to the link :

"Searching for text within a file" ... it has this comment:


Use \ as an escape character for search strings that contain the special characters *, ?, or \, (for example: d:\\directory\\filename.ext).
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now