The split function just examines individual characters to determine whether
they're delimiters.
If you want to "split" by an entire string, like splitting "xyzzy name
foobar" into "xyzzy" and "foobar," you'll need to use regular expressions
(in the System.Text.RegularExpressions namespace.) The overloaded Split
function will check for individual character delimiters (e.g., "f", "o" "b"
"a" or "r") but not entire strings. Alternatively, you could roll your own
function.
"Reb" <gb***@yahoo.com> wrote in message
news:12****************************@phx.gbl...
Hi,
I could split only by a character. How do i split by a
string.
How can i do something like this.
e.g., somestring.Split("name");
Thanks
Reb