man, 19 10 2009 kl. 16:11 +0200, skrev Eric Chassande-Mottin: > > What is the purpose of that? The 'split_by' function calls 'strtrim'; > > doesn't that remove all the whitespace that needs to be removed? > > strtrim removes leading and trailing blanks. instead the above line replaces > the occurrence of multiple blanks (including in between fields) by a > single white space. it seems that textread does that by default. > I agree that the comment is misleading.
'strtrim' is called on each individual word; isn't that enough? Could you provide an example where the regexp makes a difference? Søren ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev