Go to the first, previous, next, last section, table of contents.


Replacing Strings

Function: replace-regexp regexp template &optional pos buffer ignore-case
If a substring of the buffer at pos (or the cursor) matches the regular expression regexp the text that matched is replaced with the result of expanding the template string template.

For details about templates see section Regular Expressions.

nil is returned if the match failed, and therefore no replacement occurred.

Function: replace-string old-string new-string &optional pos buffer
If a substring of the buffer at pos (or the cursor) matches the string old-string it is replaced by the string new-string.

If the match fails nil is returned, otherwise some non-nil value.


Go to the first, previous, next, last section, table of contents.