Solved

eclispe search for pattern

Posted on 2014-01-29
3
384 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

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 …
In this post we will learn different types of Android Layout and some basics of an Android App.
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:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

695 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