jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 2371] New: - "foo:\b" fails to match "foo: bar"
Date Wed, 27 Jun 2001 21:38:43 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2371

*** shadow/2371	Wed Jun 27 14:38:43 2001
--- shadow/2371.tmp.9007	Wed Jun 27 14:38:43 2001
***************
*** 0 ****
--- 1,30 ----
+ +============================================================================+
+ | "foo:\b" fails to match "foo: bar"                                         |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2371                        Product: Regexp                  |
+ |       Status: NEW                         Version: unspecified             |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: Other                   |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: regexp-dev@jakarta.apache.org                                |
+ |  Reported By: dana.peters@emediate.com                                     |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The following code produces "match returned false", whereas I believe it should 
+ return true:
+ 
+ import org.apache.regexp.*;
+ public class RETest {
+     public static void main(String[] args) {
+         RE re;
+         try {
+             re = new RE("foo:\\b");
+         }
+         catch (RESyntaxException e) { return; }
+         System.out.println("match returned " + re.match("foo: bar"));
+     }
+ }
\ No newline at end of file

Mime
View raw message