[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: another RE problem
From: |
Stepan Kasal |
Subject: |
Re: another RE problem |
Date: |
Mon, 9 Dec 2002 13:27:58 +0100 |
User-agent: |
Mutt/1.2.5.1i |
Hello,
On Mon, Dec 09, 2002 at 07:07:21AM -0500, Jim Hart wrote:
> In gawk 3.11, this line:
>
> gawk 'BEGIN{print gensub(/ ([^ ]+) /," \"\\1\" ","g","if expr
> $document_path = /^$/")}'
>
> yields:
>
> if "expr" $document_path "=" /^$/
IMHO, this is right:
I gather that the original string contains four spaces.
The first match spans from the first one to the second one, including
both of them. The double quotes are inserted, as requested.
Then, gawk searches for second match: it starts with the second space and
ends with the fourth.
No more matches found.
Am I or gawk missing something?
> I'm sure looking forward to the next release.
:-)
I'm sure Aharon is also glad that you are so eager!
Stepan Kasal