On Tue, Jan 08, 2002 at 11:50:44AM -0800, Yitzchak Scott-Thoennes wrote:
> > -n $\=$/;$,=':';print/("[^"]*"|[^\s#]+)\s*(?:#.*)?/g
>
> Close. I said: "The surrounding quotes are themselves not part of the
> field", so the quotes should not get printed. Also, I said: "Fields
> are separated by 1 or more whitespace characters", so "x"x is one 4
> character field, not two 1 character fields.
I think
-n $,=':';$\=$/;print grep$_,/\G\s*(?:"([^"]*)"(?:\s|$)|([^\s#]+))/g;
manage to do that.
(but what a poor score it gives... :/ )
`/anick
--
I must not fear. Fear is the mind-killer that brings total obliteration.
I will face my fear. I will permit it to pass over me and through me. And
when it is gone past I will turn the inner eye to see its path. Where the
fear has gone there will be nothing. Only I will remain. - Frank Herbert