eclipse search

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
LVL 7
gudii9Asked:
Who is Participating?
 
CPColinConnect With a Mentor Senior Java ArchitectCommented:
According to the search dialog that Eclipse displays, * is a wildcard, so you have to add backslashes to escape those characters: Customer ID \*\*\*
0
 
gudii9Author Commented:
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
 
CPColinSenior Java ArchitectCommented:
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
gudii9Author Commented:
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
 
gudii9Author Commented:
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
 
CPColinSenior Java ArchitectCommented:
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
 
gudii9Author Commented:
when i search on Customer ID then it is working fine.

When i search on  "Customer ID \*" then it does not work.
0
 
Terry WoodsConnect With a Mentor IT GuruCommented:
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
 
Derek JensenConnect With a Mentor Commented:
Or
Customer ID [*]+
or
Customer ID [*]{3}
or
Customer ID [*][*][*]

again w/Regex opt. turned on.
0
 
gudii9Author Commented:
it worked Customer ID \*
by keeping Regex opt. turned on
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.