Wikia

How To Wiki

How to search and replace in Emacs

1,794pages on
this wiki
Talk0

search and replace within Emacs, You can do a standard search or use Regular expressions

  • Normal: Replace every occurrence of your_search_string with your_replace_string.
    Key sequence
    • M-x replace-string Enter your_search_string Enter your_replace_string Enter
  • Regular expressions: Replace every match for your_regexp with your_replace_string.
    Key sequence
    • M-x replace-regexp Enter your_regexp Enter your_replace_string Enter


  • M is the Meta key
  • Enter is the enter key

ReferencesEdit

Around Wikia's network

Random Wiki