Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Bug in String's split method???
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Virgil Green, post: 615987"] I see no conflict or ambiguity. As you pointed out, *trailing* empty strings will be discarded. There is no trailing empty string until there is a delimiter. The beginning of the string is not a delimiter with respect to the pattern, IMHO. The section I quoted above is the rule to be used in a special case... when there are no pattern matches. The second section you quoted is only in force when there is at least one pattern match. I assume it was intended to prevent the return of an empty string element when the pattern matched the tail characters of the string. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Bug in String's split method???
Top