[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/25971] New: Regex problem
From: |
mike at saxonica dot com |
Subject: |
[Bug classpath/25971] New: Regex problem |
Date: |
26 Jan 2006 12:10:11 -0000 |
The following program should output "true", but outputs "false":
package test;
import java.util.regex.Pattern;
public class PatternTest {
public static void main(String[] args) {
System.err.println(
Pattern.compile("([^ot,]*?)([ot]?)(,.*)?")
.matcher("Y01,2-2").matches()
);
}
}
Michael Kay
--
Summary: Regex problem
Product: classpath
Version: 0.20
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mike at saxonica dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25971
- [Bug classpath/25971] New: Regex problem,
mike at saxonica dot com <=