Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: String.split()
From: Millie Maruani
Date: Sun, 04 Feb 2001 11:04:53 -0000

String.split
Syntax

myString.split(delimiter);

Arguments delimiter The character used to delimit the string.

Description Method; splits a String object by breaking the string wherever
the specified delimiter argument occurs, and returns the substrings in an
array. If no delimiter is specified, the returned array contains only one
element-the string itself. If the delimiter is an empty string, each
character in the String object becomes an element in the array.


If the delimiter is an empty string, each character in the String object
becomes an element in the array.
this doesn't work!
text="hello you";
letter=new array();
letter=text.split("");
returns "hello you" exactly as letter=text.split();

Am I mistaking?

Millie




[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]