Wesley Darlington <[EMAIL PROTECTED]> wrote: > -p s/\s*("([^"]*)"|((\S*?)#.*)|(\S+))\s*/$2$4$5:/g,s/:+$/\n/
That's downright clever. I think the approach could be a winner, but as is it removes trailing empty fields: x "" becomes: x instead of: x:
Wesley Darlington <[EMAIL PROTECTED]> wrote: > -p s/\s*("([^"]*)"|((\S*?)#.*)|(\S+))\s*/$2$4$5:/g,s/:+$/\n/
That's downright clever. I think the approach could be a winner, but as is it removes trailing empty fields: x "" becomes: x instead of: x: