[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error in replace-match: "args out of range"
From: |
David Kastrup |
Subject: |
Re: error in replace-match: "args out of range" |
Date: |
Sat, 09 Apr 2011 14:57:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
ken <gebser@mousecar.com> writes:
> On 04/09/2011 02:44 AM PJ Weisberg wrote:
>> On 4/8/11, ken <gebser@mousecar.com> wrote:
>>> On 04/07/2011 07:25 PM Tim X wrote:
>>>> This was my point of warning. It is quite possible to have
>>>> regexps where sub expressions are not found, but the overall regexp
>>>> succeeds.
>>> I'm having a hard time with that concept. Is there a small bit of
>>> example code you could show it with?
>>
>> "I am\\( not\\)? a fish."
>>
>> -PJ
>
> And on what sort of string would that RE match but the subexpression
> have the value nil (as opposed to the null string "")?
Huh? Isn't that rather obvious?
(list (string-match "I am\\( not\\)? a fish." "I am a fish!")
(match-string 1)) => (0 nil)
--
David Kastrup
- Re: error in replace-match: "args out of range", ken, 2011/04/03
- Re: error in replace-match: "args out of range", PJ Weisberg, 2011/04/03
- Re: error in replace-match: "args out of range", ken, 2011/04/04
- Message not available
- Re: error in replace-match: "args out of range", Tim X, 2011/04/04
- Re: error in replace-match: "args out of range", ken, 2011/04/07
- Message not available
- Re: error in replace-match: "args out of range", Tim X, 2011/04/07
- Re: error in replace-match: "args out of range", ken, 2011/04/09
- Re: error in replace-match: "args out of range", PJ Weisberg, 2011/04/09
- Re: error in replace-match: "args out of range", ken, 2011/04/09
- Message not available
- Re: error in replace-match: "args out of range",
David Kastrup <=
- Re: error in replace-match: "args out of range", PJ Weisberg, 2011/04/09
- Re: error in replace-match: "args out of range", Perry Smith, 2011/04/09
Message not available
Message not availableRe: error in replace-match: "args out of range" [SOLVED], Stefan Monnier, 2011/04/09