bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/30732] New: Regular Expression Error


From: simon at redhillconsulting dot com dot au
Subject: [Bug classpath/30732] New: Regular Expression Error
Date: 8 Feb 2007 07:54:55 -0000

The following regular expression:

"^[\\\\/]a[\\\\/]$"

fails to match either of the following strings:

"/a/"
"\\a\\"

Curiously, the following is a work-around:

"^(\\\\|/)a[\\\\/]$"

and so is:

"^(\\\\|/)a(\\\\|/)$"


but the following is not:

"^[\\\\/]a(\\\\|/)$"

The problem doesn't occur under vanilla JDK nor .Net.


-- 
           Summary: Regular Expression Error
           Product: classpath
           Version: 0.93
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: simon at redhillconsulting dot com dot au


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30732





reply via email to

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