Gyo*_*yom 4 string emacs search
我想在另一个中搜索一个字符串(基本上是strstr
C中的字符串),我在elisp手册中找不到任何内容.
我是否必须重新实现所有这些,或者我错过了一些明显的东西?
或者你可以使用正则表达式:
(string-match-p "foo" "barfoo")
3
Run Code Online (Sandbox Code Playgroud)
要么
(string-match "foo" "barbar")
nil
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请参阅Regexp-Search.