Solved

eclispe search for pattern

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jdbc error in jsp application 20 45
MySqlDump not dumping triggers 1 31
hibernate example issues from command prompt 10 41
maven module vs maven project 3 23
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…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

778 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