in reply to Re^5: Regex /g and interpolated lengths
in thread Regex /g and interpolated lengths

s/^\w\w\t(.+)(?:\n)?/$1/ for(@content);
Newlines should have been removed by that line.

Replies are listed 'Best First'.
Re^7: Regex /g and interpolated lengths
by duff (Parson) on Nov 15, 2005 at 22:29 UTC

    Ah, good point. Perhaps the file was generated on a DOS/Windows based system but he'se running his program on a unix-based or Macintosh system? The newlines would be different between those systems and his RE wouldn't be working properly.