[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [2nd attempt] What's the doc of replace-regexp-in-string saying ?
From: |
Bill Marcum |
Subject: |
Re: [2nd attempt] What's the doc of replace-regexp-in-string saying ? |
Date: |
Wed, 08 Dec 2010 15:37:08 -0000 |
User-agent: |
slrn/pre1.0.0-18 (Linux) |
On 2010-11-22, bolega <gnuist006@gmail.com> wrote:
> Hello All,
>
> I am posting my question a second time. first time around, it was the
> victim of the humor of come cynics.
>
> Bolega
>
> On Nov 21, 3:27 pm, bolega <gnuist...@gmail.com> wrote:
>> Hello All,
>>
>> In this doc, its not clear what the role of \' is ?
>>
>>
>> To replace only the first match (if any), make REGEXP match up to \'
>> and replace a sub-expression, e.g.
>> (replace-regexp-in-string "\(foo\).*\'" "bar" " foo foo" nil nil 1)
>> => " bar foo"
>
This is off topic for comp.unix.shell, but it seems clear to me. If the
regexp didn't end with \', it would change " foo foo" to " bar bar".
--
Year, n.:
A period of three hundred and sixty-five disappointments.
-- Ambrose Bierce, "The Devil's Dictionary"
- What's the doc of replace-regexp-in-string saying ?, bolega, 2010/12/08
- [2nd attempt] What's the doc of replace-regexp-in-string saying ?, bolega, 2010/12/08
- Re: What's the doc of replace-regexp-in-string saying ?, Sidney Lambe, 2010/12/09
- Re: What's the doc of replace-regexp-in-string saying ?, Pascal J. Bourguignon, 2010/12/08
- Re: What's the doc of replace-regexp-in-string saying ?, Sidney Lambe, 2010/12/09
- Re: What's the doc of replace-regexp-in-string saying ?, Pascal J. Bourguignon, 2010/12/08
- Re: What's the doc of replace-regexp-in-string saying ?, Chris F.A. Johnson, 2010/12/08
- Re: What's the doc of replace-regexp-in-string saying ?, Stefan Monnier, 2010/12/08
- Re: What's the doc of replace-regexp-in-string saying ?, Pascal J. Bourguignon, 2010/12/08
- Re: What's the doc of replace-regexp-in-string saying ?, bolega, 2010/12/08
- Re: What's the doc of replace-regexp-in-string saying ?, bolega, 2010/12/08