You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by bu...@apache.org on 2001/07/10 03:50:38 UTC

[Bug 2525] New: - Leading zero-length string splitted by RE

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2525

*** shadow/2525	Mon Jul  9 18:50:38 2001
--- shadow/2525.tmp.18273	Mon Jul  9 18:50:38 2001
***************
*** 0 ****
--- 1,19 ----
+ +============================================================================+
+ | Leading zero-length string splitted by RE                                  |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2525                        Product: Regexp                  |
+ |       Status: NEW                         Version: unspecified             |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows 9x              |
+ |     Priority: Other                     Component: Other                   |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: regexp-dev@jakarta.apache.org                                |
+ |  Reported By: arlou@263.net                                                |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ When I use an RE, say "a*b", to split a string like "aaabxyz", I'd think only 1 
+ part comes out, but there are 2 parts, with the first is a zero-length string. 
+ I wonder there is something missed in RE.split.