Justin,
COOL! I'll have to add that one to my little FAQ.
Thanks
Jay
"Justin Rogers" <Justin@games4dotnet.com> wrote in message
news:OC0IXmPxEHA.2540@TK2MSFTNGP09.phx.gbl...[color=blue]
>
http://weblogs.asp.net/justin_rogers.../14/89545.aspx
>
> A very fast string splitter that thwomps both Regex, because of the
> overhead, and VB.Split, because they have some weird heuristics.
>
>
> --
> Justin Rogers
> DigiTec Web Consultants, LLC.
> Blog:
http://weblogs.asp.net/justin_rogers
>
>
> "Itzik" <itzikm@pisgasys.co.il> wrote in message
> news:ejFpoUMxEHA.2572@tk2msftngp13.phx.gbl...[color=green]
>> can i split this string
>>
>> string str = "aa a - bb-b - ccc"
>>
>> with this delimiter
>>
>> string del = " - "
>>
>> i want recieve 3 items : "aa a" , "bb-b" , "ccc"
>>
>> i use this syntax :
>> string str = "aa a - bb-b - ccc";
>>
>> string del = " - ";
>>
>> string[] temp = str.Split(del.ToCharArray());
>>
>> now is return me 9 items : "aa" , "a" , "" , "" , "bb" , "b" , "" , "" ,
>> "ccc"
>>
>>
>>
>> Thanks
>>
>>
>>
>>[/color]
>
>[/color]