C# string parsing question

Posted by rsteckly on Stack Overflow See other posts from Stack Overflow or by rsteckly
Published on 2010-05-03T02:32:20Z Indexed on 2010/05/03 2:38 UTC
Read the original article Hit count: 397

Filed under:
|

I'm trying to split a string:

 string f = r.ReadToEnd();
 string[] seperators = new string[] {"[==========]"};
 string[] result;
result = f.Split(seperators, StringSplitOptions.None);

There's this ========== thing that separates entries. For the life of me, I can't get this to work. I've got a ruby version working...BUT using the string splitter classes I thought I knew for .NET doesn't seem to be working so well.

Any ideas what I'm doing wrong?

© Stack Overflow or respective owner

Related posts about c#

Related posts about string-manipulation