DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2121>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2121

'.' or '-' in bracket expression gives unexpected results





------- Additional Comments From [EMAIL PROTECTED]  2003-12-20 18:03 -------
I think it is possible to add new MATCH modifier, something like:

Index: src/java/org/apache/regexp/RE.java
===================================================================
RCS file: /home/cvs/jakarta-regexp/src/java/org/apache/regexp/RE.java,v
retrieving revision 1.14
diff -u -r1.14 RE.java
--- src/java/org/apache/regexp/RE.java  6 Sep 2003 01:45:51 -0000       1.14
+++ src/java/org/apache/regexp/RE.java  19 Dec 2003 03:16:44 -0000
@@ -389,6 +389,12 @@
      */
     public static final int MATCH_SINGLELINE      = 0x0004;
 
+    /**
+     * Changes behavior of '-' in character classes where one or both
+     * of the range limits are missing.
+     */
+    public static final int MATCH_POSIX           = 0x0008;
+
     /************************************************
      *                                              *
      * The format of a node in a program is:        *


And change behavior of RECompiler depending on value of this match modifier.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to