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
请先登录再写评论。
Jon Steelman wrote:
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
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:
>>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.