You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by bu...@apache.org on 2001/06/27 23:38:43 UTC
[Bug 2371] New: - "foo:\b" fails to match "foo: bar"
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