in reply to RE: Re: splitting
in thread splitting

The only reason I put the \s in the regex above was because the original posting wanted: (text,delimeter,text,delimeter,text) with the white space removed ... so my regex does not capture the white space. Perhaps I was not that clear: do what ever you want with the regex, but note that whatever is in the '()' will be returned into the array. So I just as well could have done:@array = split(/(delimeter)/, $str); But then @array would have the white space in some of the array elements:
@array would be ("text ", "delimeter', " text ", "delimeter", " text") +;
Hopefully this will clear some things up.