[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bugs #11133] java.util.regex.Pattern doesn't handle parens
From: |
Julian Scheid |
Subject: |
[commit-cp] [bugs #11133] java.util.regex.Pattern doesn't handle parens in character sets consistently |
Date: |
Thu, 25 Nov 2004 13:24:19 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914 Firefox/0.10 StumbleUpon/1.998 |
This mail is an automated notification from the bugs tracker
of the project: classpath.
/**************************************************************************/
[bugs #11133] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11133>
Project: classpath
Submitted by: Julian Scheid
On: Thu 11/25/2004 at 18:18
Category: classpath
Severity: 5 - Average
Resolution: None
Privacy: Public
Assigned to: None
Status: Open
Platform Version: None
Summary: java.util.regex.Pattern doesn't handle parens in character sets
consistently
Original Submission: Pattern.compile("[(]") works and matches a single open
paren, but Pattern.compile("([(])") doesn't, nor does
Pattern.compile("(?:[(])").
I'm not sure whether parens in character sets need to be escaped, but either
way the current behavior is inconsistent.
A workaround is to extract the paren from the character set and use something
like (?:[abc]|() instead.
% gcj --version
gcj (GCC) 4.0.0 20041125 (experimental)
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11133>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] [bugs #11133] java.util.regex.Pattern doesn't handle parens in character sets consistently,
Julian Scheid <=