Solved

eclispe search for pattern

Posted on 2014-01-29
3
346 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

895 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

13 Experts available now in Live!

Get 1:1 Help Now