Solved

eclispe search for pattern

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 64
difference between sorce folder and folder in eclipise 3 46
jsp error 6 49
junit example issue 2 30
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

696 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