regular expressions in Find to use java.util.regex?

Will IDEA soon start using the regular expression libraries built-in
with the jdk in java.util.regex for Finds? I'm trying to use a pattern
like the following which works in the jdk package but apparently not
with the current IDEA library:
[\s&&[^\n]]
(sure I can make it but that's not the point)

It would also be nice to document the details on current regular
expressions... less necessary if it is the jdk's package where you could
just reference the jdk documentation.

Thanks,
Jon

2 comments
Comment actions Permalink

Jon Steelman wrote:

It would also be nice to document the details on current regular
expressions... less necessary if it is the jdk's package where you
could just reference the jdk documentation.


I believe IDEA uses ORO matcher for it's regular expressions. I don't know
anything about it though. Here's a link:
http://jakarta.apache.org/oro/index.html

Bas


0
Comment actions Permalink

Thanks for the pointer, Bas. OROMatcher seems less expressive than
java.util.regex. And it certainly seems to be much less documented.
Hence, my new feature request:
http://www.intellij.net/tracker/idea/viewSCR?publicId=8075

Since they are committed to jdk1.4 to run IDEA, it seems like there is
no longer a jdk versioning reason (1.4 is first version to support) to
avoid using java.util.regex

Jon

Bas Leijdekkers wrote:

Jon Steelman wrote:

>>It would also be nice to document the details on current regular
>>expressions... less necessary if it is the jdk's package where you
>>could just reference the jdk documentation.


I believe IDEA uses ORO matcher for it's regular expressions. I don't know
anything about it though. Here's a link:
http://jakarta.apache.org/oro/index.html

Bas


0

Please sign in to leave a comment.