[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Test for a list of words?

From: Svend Tollak Munkejord
Subject: Test for a list of words?
Date: Sun, 11 May 2003 12:45:07 +0200
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (berkeley-unix)


How can I test whether a buffer contains some words? Here is an example:

(re-search-forward "foo\\|bar\\|baz" nil t)

tests if one or more of the words are present, but I would like to test for
all of them. (This is inside a function)

Thanks for any hint.
Svend Tollak Munkejord 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]