Solved

eclipse search

Posted on 2014-02-12
10
283 Views
Last Modified: 2014-02-13
Hi,

My test.xhtml page has label as --->  Customer ID ***



I searched on eclipse workspace using same string which is --->Customer ID ***

by removing and enabling case sensitive/regular expression with *.* as file type. Some reason it is not able to search properly to narrow down to exact  search string  I want
 which is --->Customer ID ***

How to fix this issue. Please advise

 Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
10 Comments
 
LVL 14

Accepted Solution

by:
CPColin earned 250 total points
ID: 39853950
According to the search dialog that Eclipse displays, * is a wildcard, so you have to add backslashes to escape those characters: Customer ID \*\*\*
0
 
LVL 7

Author Comment

by:gudii9
ID: 39854011
Customer ID \*\*\*
I tried. It did not work.

After ID there is blank space before ***

Do Ineed to care for that.

Do i need to enable the Regular expression. Can you please send the screenshot if possible.
0
 
LVL 14

Expert Comment

by:CPColin
ID: 39854022
Leave the "Regular Expression" option turned off. Enter the exact text you want to search for, including any spaces, but put a backslash before each asterisk.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 7

Author Comment

by:gudii9
ID: 39854158
Customer ID \*\*\*
I tried. It did not work.
In the UI it shows as --->Customer ID \*\*\*
with space before ID

when i copy paste to eclipse or notepad I see that sapce somehow is disappearing. Not sure why? please advise
0
 
LVL 7

Author Comment

by:gudii9
ID: 39854168
Can I restrict eclipse search to complete word like

If I search on 'aaaa' i want to see results relating to aaaa only not aaaab, aaaacc etc. please advise
0
 
LVL 14

Expert Comment

by:CPColin
ID: 39854173
The search dialog, specifically, the "File Search" tab of it, has a "Whole word" checkbox.

You're just going to have to tinker with it until it works. Try starting with just "Customer ID" and see if that returns results. Then try "Customer ID \*" or "ID \*\*\*" or something. Experiment. Investigate. With a piece of software as complex as Eclipse, it's the only real way to learn.
0
 
LVL 7

Author Comment

by:gudii9
ID: 39854445
when i search on Customer ID then it is working fine.

When i search on  "Customer ID \*" then it does not work.
0
 
LVL 35

Assisted Solution

by:Terry Woods
Terry Woods earned 125 total points
ID: 39854455
With the regular expression option turned on, searching for:
Customer ID \*
may work. If you like, you could also try this (with the regular expression option turned on):
Customer ID [*]
0
 
LVL 9

Assisted Solution

by:Derek Jensen
Derek Jensen earned 125 total points
ID: 39855093
Or
Customer ID [*]+
or
Customer ID [*]{3}
or
Customer ID [*][*][*]

again w/Regex opt. turned on.
0
 
LVL 7

Author Comment

by:gudii9
ID: 39857048
it worked Customer ID \*
by keeping Regex opt. turned on
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
starter POM and spring-boot-starter,  spring-boot-web 2 54
eclipse argument 14 60
Desingning Refactoring existing code 2 24
Java: anonymous class 4 17
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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 will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

785 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