On Thu, 1 Apr 2004 09:54:23 -0500, in msg
<e4************ *@TK2MSFTNGP12. phx.gbl>, "DevBoy" <de****@cfl.rr. com>
wrote:
Regex rx = new Regex("{");
string[] segmentData = rx.split(str);
I don't see a problem. I emulated your code and it ran perfectly.
const string mystring = "this{is{the{wa y{we{wash{our{h air";
Regex rx = new Regex("{");
string[] segmentData = rx.Split(mystri ng);
for ( int ix = 0; ix < segmentData.Len gth; ix++ )
{
Console.WriteLi ne("Segment Data for {0} is {1}", ix,
segmentData[ix]);
}
Segment Data for 0 is this
Segment Data for 1 is is
Segment Data for 2 is the
Segment Data for 3 is way
Segment Data for 4 is we
Segment Data for 5 is wash
Segment Data for 6 is our
Segment Data for 7 is hair
--
John Wood a.k.a Mortimer Schnurd
http://www.loosemarbles.com