Bug 19413 - File Search - would be nice to have "Whole Word" [search]
Summary: File Search - would be nice to have "Whole Word" [search]
Status: RESOLVED DUPLICATE of bug 2821
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 21650 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-05 15:47 EDT by Carolyn MacLeod CLA
Modified: 2003-04-14 09:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carolyn MacLeod CLA 2002-06-05 15:47:28 EDT
20020602 (F2)

Not for 2.0 - I am just opening this while I think of it.  :)

- click on the search tool
- go to the File Search tab
- type "the" in the "Containing text:" field  (no quotes)
- click Search

You will get hits for "the", "them", "then", "their", "there, "these", etc.

Would be nice if you could click a checkbox that narrowed the search to whole 
words only, like you can in the Find/Replace dialog.
Comment 1 Erich Gamma CLA 2002-06-05 18:56:49 EDT
the only reason why we did not do it 2.0 is that the StringMatcher doesn't 
support it. Agree to defer
Comment 2 Dirk Baeumer CLA 2002-07-18 11:53:34 EDT
There should be only one StringMatcher in the Platform and that should 
support "whole word" matching.
Comment 3 Dani Megert CLA 2003-04-02 09:23:41 EST
Moving to Platform-Search (via Platform-UI because Bugzilla is dumb)

This can now be considered since 2.2. is SDK 1.4.x based and offers a RegEx package.
Comment 4 Dani Megert CLA 2003-04-02 09:23:59 EST
.
Comment 5 Adam Kiezun CLA 2003-04-08 11:53:40 EDT
was still sitting in jdt-ui-inbox
Comment 6 Dani Megert CLA 2003-04-10 13:17:29 EDT
Search now supports regular expressions (the pattern in your example would be: 
\bthe\b
Comment 7 Dani Megert CLA 2003-04-10 13:19:58 EDT
*** Bug 21650 has been marked as a duplicate of this bug. ***
Comment 8 Dani Megert CLA 2003-04-14 09:41:46 EDT
reopen to close as duplicate
Comment 9 Dani Megert CLA 2003-04-14 09:42:46 EDT

*** This bug has been marked as a duplicate of 2821 ***