[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
string-match: \` and \= do not match when START is non-zero
From: |
Kevin Rodgers |
Subject: |
string-match: \` and \= do not match when START is non-zero |
Date: |
Thu, 24 Apr 2003 11:37:15 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
\` or \= should match the empty string at index START in STRING.
(string-match "\\`bar\\'" "foobar" 3) and (string-match "\\=bar\\'" "foobar" 3)
return nil. I think at least one of them should succeed and return 3, just like
(string-match "bar\\'" "foobar" 3) does. Otherwise, how can you anchor the
REGEXP at index START in STRING?
[time passes]
(equal (string-match REGEXP STRING START) START)
[never mind]
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
- string-match: \` and \= do not match when START is non-zero,
Kevin Rodgers <=