[EMAIL PROTECTED], 2001-03-25 18:39 -0800
>On Sun, 25 Mar 2001, Mike Noyes wrote:
>
> > [EMAIL PROTECTED], 2001-03-25 15:14 -0800
> > >-----------------------------------------------------------------------
> ----
> > >sed -e "/INSERT INTO
> author/s/\((\('\([^'\]\|\\\.\)*',\)\{4\}\)'\([^'\]\|\\
> > >\.\)*',\([^)]*\)/\1'dummy',\5/g"
> > >-----------------------------------------------------------------------
> ----
This works like a charm. Thank you for the wonderful breakdown of the RE.
I'll study it as I fall asleep.
>Sleep and whitespace.
>
> > >-----------------------------------------------------------------------
> ----
> > >sed -e "/INSERT INTO
> user/s/(\(\('\([^'\]\|\\\.\)*',\)\{6\}\)'\([^'\]\|\\\.
> > >\)*'\(,'\([^'\]\|\\\.\)*'\)\{11\}/\1'dummy',\5/g"
> > >-----------------------------------------------------------------------
> ----
I get this error from sed:
sed: -e expression #1, char 65: Unterminated `s' command
>---------------------------------------------------------------------------
>sed -e "/INSERT INTO user/s/(\(\(\('\([^'\]\|\\\.\)*'\|[0-9]*\),\)\{6\}\)'\
>([^'\]\|\\\.\)*/\1'dummy/g"
>---------------------------------------------------------------------------
Sed gave me this error for the command above.
sed: -e expression #1, char 90: Unmatched ( or \(
> > Thanks for all the help. :-)
>
>Thanks for all the work on Leaf. :)
It's no problem. I'm having fun. :)
--
Mike Noyes <[EMAIL PROTECTED]>
http://leaf.sourceforge.net/
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel