Wesley Darlington <[EMAIL PROTECTED]> wrote:

> -p s/\s*("([^"]*)"|((\S*?)#.*)|(\S+))\s*/$2$4$5:/g,s/:+$/\n/

Is the third set of parens necessary?  Won't this do the same?

  -p s/\s*("([^"]*)"|(\S*?)#.*|(\S+))\s*/$2$3$4:/g,s/:+$/\n/

And from there you can cut it further to

  -p s/\s*("([^"]*)"|(\S*?)#.*|(\S+))\s*/$+:/g,s/:+$/\n/

It still has the problems with trailing null fields and "x"x.

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC

Reply via email to