bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/24876] Regex failure


From: mark at gcc dot gnu dot org
Subject: [Bug classpath/24876] Regex failure
Date: 20 Nov 2005 19:26:01 -0000


------- Comment #2 from mark at gcc dot gnu dot org  2005-11-20 19:26 -------
A workaround seems to be to not write:
  Pattern isNickUserHost = Pattern.compile("(.+?)!((.+?)@(.+?))");
but instead:
  Pattern isNickUserHost = Pattern.compile("((.+)?)!(((.+)?)@((.+)?))");

That is is the maybe-once operator ? only on a group.


-- 

mark at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-20 19:26:01
               date|                            |


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





reply via email to

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