[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/28413] New: [regex] Pattern.MULTILINE | Pattern.DOTALL do
From: |
csm at gnu dot org |
Subject: |
[Bug classpath/28413] New: [regex] Pattern.MULTILINE | Pattern.DOTALL doesn't match ^ and $ |
Date: |
17 Jul 2006 23:12:42 -0000 |
The anchors ^ (start-of-line) and $ (end-of-line) don't match newline sequences
with options MULTILINE and DOTALL.
I'll attach a full test case, but in short, the pattern
\\A^([A-Z]+) +([^ ]+) +HTTP/([0-9\\.]+)$.*^Host: ([^ ]+)$.*\r\n\r\n\\z
*should* match an HTTP request header that includes a Host: line. This pattern
matches successfully on Sun java 1.5.0_06, but not on Classpath CVS with jamvm.
--
Summary: [regex] Pattern.MULTILINE | Pattern.DOTALL doesn't match
^ and $
Product: classpath
Version: 0.92
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: csm at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28413
- [Bug classpath/28413] New: [regex] Pattern.MULTILINE | Pattern.DOTALL doesn't match ^ and $,
csm at gnu dot org <=