comparison src/search.c @ 48528:467b0e57d985

(Fstring_match): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Sun, 24 Nov 2002 19:04:57 +0000
parents ff9770dda600
children 23a1cea22d13
comparison
equal deleted inserted replaced
48527:ba7cb9f8dfc3 48528:467b0e57d985
417 doc: /* Return index of start of first match for REGEXP in STRING, or nil. 417 doc: /* Return index of start of first match for REGEXP in STRING, or nil.
418 Case is ignored if `case-fold-search' is non-nil in the current buffer. 418 Case is ignored if `case-fold-search' is non-nil in the current buffer.
419 If third arg START is non-nil, start search at that index in STRING. 419 If third arg START is non-nil, start search at that index in STRING.
420 For index of first char beyond the match, do (match-end 0). 420 For index of first char beyond the match, do (match-end 0).
421 `match-end' and `match-beginning' also give indices of substrings 421 `match-end' and `match-beginning' also give indices of substrings
422 matched by parenthesis constructs in the pattern. */) 422 matched by parenthesis constructs in the pattern.
423
424 You can use the function `match-string' to extract the substrings
425 matched by the parenthesis constructions in REGEXP. */)
423 (regexp, string, start) 426 (regexp, string, start)
424 Lisp_Object regexp, string, start; 427 Lisp_Object regexp, string, start;
425 { 428 {
426 return string_match_1 (regexp, string, start, 0); 429 return string_match_1 (regexp, string, start, 0);
427 } 430 }