Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 33115

Summary: Regular expression search
Product: [Eclipse Project] Platform Reporter: Steven Buroff <sburoff>
Component: SearchAssignee: Platform-Search-Inbox <platform-search-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse.5.ulib, jed, karl-heinz.damm, nikolaymetchev, quartz12h, tlroche
Version: 2.1   
Target Milestone: 3.0 M4   
Hardware: All   
OS: All   
Whiteboard:

Description Steven Buroff CLA 2003-02-25 15:44:55 EST
I would like to see Eclipse support regular expression searching.
This shouldn't be too hard now that Java incorporates a regular
expression package.
Comment 1 Dani Megert CLA 2003-02-26 03:08:41 EST
>This shouldn't be too hard now that Java incorporates a regular
>expression package.

The Eclipse Plan for 2.1 requires to be 1.3.1 compatible. 1.3.1 which does not
offer a regex package.


*** This bug has been marked as a duplicate of 14277 ***
Comment 2 Dani Megert CLA 2003-04-14 09:38:40 EDT
Had to revert the changes until 1.4 is available on all platforms. From the
eclipse-dev mailing list:

>Please continue to use only J2SE 1.3 APIs in the main Eclipse development 
>stream.
>
>As indicated in the draft 2.2 plan, Eclipse mainline development will be 
>based on the current version of J2SE, namely 1.4. However, for some of the 
>operating environments we still need to identify suitable reference J2SE 
>1.4 implementations to use for development and testing. We won't make the 
>leap until we've completed these investigations. Please refrain from using 
>J2SE 1.4-specific APIs in this stream.
Comment 3 Dani Megert CLA 2003-04-14 09:48:34 EDT
The backed out code is tagged with "dm_RegEx_Support"
Comment 4 Tom Roche CLA 2003-06-06 18:14:17 EDT
Until you have "real" regexp searching, please improve search in
one small way: fix '*' handling.

In most regexp schema (of which I'm aware--YMMV), '*' == 0 or more
characters. Yet in an Java search of my workspace,
"getPackageFragment(*)" fails while "getPackageFragment()" succeeds.
This is very annoying. IMHO, if you want to signify 1 or more
characters, you should use '+'. (Feel free to add :-)
Comment 5 Jason Yip CLA 2003-09-16 01:00:02 EDT
Isn't this a duplicate of 14277?
Comment 6 Dani Megert CLA 2003-09-16 03:17:07 EDT
No.

This one is for the File Search page and bug 14277 is for the Find/Replace
functionality in editors.
Comment 7 Dani Megert CLA 2003-09-16 03:24:14 EDT
Eclipse is now building and running against 1.4.x and RegEx is now available in
the File Search page.

The PR is kept open since we are still investigating on how to best offer
assistance for entering regular expressions (besides F1). Currently the
preferred way is offer content assist as in the Java editor.

Please note that RegEx for Java Search isn't possible until Jdt Core implements
bug 36897.
Comment 8 Dani Megert CLA 2003-09-24 03:42:39 EDT
*** Bug 22711 has been marked as a duplicate of this bug. ***
Comment 9 Dani Megert CLA 2003-10-07 04:42:27 EDT
Added F1 help for I20031007.

Content assist is currently provided by Find/Replace dialog. Once Platform-Text
offers this as API we will enhance the File search page as well (see new bug 44280).
Comment 10 Dani Megert CLA 2003-10-07 11:10:01 EDT
*** Bug 44313 has been marked as a duplicate of this bug. ***