Emacs manual
Emacs searching and replacement
Searching
C + s
search-forward
C + r
search-backward
C + M + s
search-forward-regexp
Replacement
M-x replace-string RET string RET newstring RET
M-% string RET newstring RET
M-x replace-regexp
M-x query-replace
M-x query-replace-regexp
Other search-and-loop commands
M-x count-matches RET regexp RET
Print the number of matches for regexp after point.
M-x flush-lines RET regexp RET
Delete each line that follows point and contains a match for regexp.
M-x keep-lines RET regexp RET
Delete each line that follows point and does not contain a match for regexp
Regular Expresion
special characters are '$','^', '.', '*', '+', '?', '[', ']' and '\'
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment