From: Dany Cayouette Date: 2004-10-01T07:25:01+09:00 Subject: Re: Regexp question On Thu, 30 Sep 2004 17:57:19 -0400 Dany Cayouette wrote: > > > But for further clarification: > > How should 'a;b\\;;c' be split? > Guess is that it should be > ["a", "b\", nil, "c"] Sorry... I meant ["a", "b\\", nil, "c"] where b\\ would utimately become b\ when the escape chars are process in the data portion > > characters escaped by backslash at semi-colon, colon and backslash i.e. > > ; => \; : => \: \ => \\ > > > If backslashs can be escaped (and you'd want that because otherwise you > > can't have a field "b\" its more difficult. > > Didn't think about that one... I thought this was simple and the problem was my lack of programming experience... Dany