regex - elisp regexp search in strings, not buffers -


I'm searching everywhere in the emacs lisp documentation for how to search in a string on a regular basis. I think how it is done in buffers.

Am I missing something? Should I impose my string in a temporary buffer and search for it? Is it just the coding style of elisp, will i be used to do something? Is this a standard solution to this problem? When I can search directly in a variable already available, the mailpayt buffers appear stinging.

Just store your string as a variable.

The most difficult thing is that you do not usually modify the string (except if you do the array on the string, because the string is an array, but it should generally be avoided), but You return the modified string.

At any rate, here's an example of using the string in Alist.

This will skip the white space from the end of the strips:

  (setq test-str "abcdefg") (when (string-match "[\ t] * $" Test-str (Message (concat "[" (substitution-match "" zero zero-test-ar) "]")))))  

Comments