bug-classpath
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]