For example, I open a file called "abc.txt". Now I want to search for all occurrences of "he is" and "first" simultaneously. I want to be able to do a search forward i.e. Ctrl-s and I'll reach the next instance of either of the two search strings.
views:
99answers:
2
+8
A:
M-x isearch-forward-regexp he is\|first
That command can also be found on C-u C-s and C-M-s
Oleg Pavliv
2010-03-26 10:30:23
+2
A:
Just search for a regular expression, using e.g. search-forward-regexp
with an appropriate regex search string:
he is\|first
Paul R
2010-03-26 10:30:47