help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string-match bug?


From: Matthew Dempsky
Subject: Re: string-match bug?
Date: Tue, 8 Dec 2009 15:48:20 -0800

On Tue, Dec 8, 2009 at 12:48 PM, Barry Margolin <barmar@alum.mit.edu> wrote:
> If
> (string-match (concat regex1 regex2) (concat str1 str2))
> then
> (and (string-match regex1 str1) (string-match regex2 str2))

Not quite: STRING-MATCH searches for a substring that matches a
specified regexp; it doesn't return whether the whole string matches
the regexp.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]