dotgnu-general
[Top][All Lists]
Advanced

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

Re: [DotGNU]code verification


From: Haran Shivanan
Subject: Re: [DotGNU]code verification
Date: Sat, 31 Aug 2002 13:58:50 +0530 (IST)

> 
> This is due to the obvious fact that r does not have any '.' characters ...
> String.Split() is not a regexp ... You should have split with respect to
> ' ' to get something useful..
> 
Not really. The actual code has:
public static void Main()
{
        String r="sdsdf   dsf     fsdf sdf";
        char []c= {' '};
        String[] s = r.Split(c);
        Console.Write(s.Length+"\n");
        Console.Write(s[0]+"\n");
}

That was a typo in my first mail.
The result of this is:
1
sdsdf   dsf     fsdf sdf

-- 
If you can't dazzle them with brilliance,riddle them with bullets



reply via email to

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