(replace-regexp-in-string): Doc fix.

This commit is contained in:
Andreas Schwab 2002-10-29 23:42:00 +00:00
parent e5f5192972
commit c9bcb50778
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-10-30 Andreas Schwab <schwab@suse.de>
* subr.el (replace-regexp-in-string): Doc fix.
2002-10-29 Dave Love <fx@gnu.org>
* cus-start.el (selection-coding-system, scalable-fonts-allowed):

View file

@ -1790,7 +1790,7 @@ point are such that match 0 is the function's argument.
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)
(replace-regexp-in-string \"\\\\(foo\\\\).*\\\\'\" \"bar\" \" foo foo\" nil nil 1)
=> \" bar foo\"
"