I want to find a string in another (basically what strstr does in C), and I did not find anything in the elisp manual.
strstr
Do I need to overestimate all this, or am I missing something obvious?
Or you can use regular expressions:
(string-match-p "foo" "barfoo") 3
or
(string-match "foo" "barbar") nil
See Regexp-Search for details.
Lines are sequences. And thus the search will work:
(search "foo" "in foo-bar") 3
Source: https://habr.com/ru/post/1335389/More articles:Error C2558 - copy constructor - c ++CSS-X fire plugin for other IDEs - cssIssue with replacing Makefile command - linuxstd :: vector hexadecimal values ββ- c ++Determine if a property is animated using a CSS3 transition? - javascriptProblem installing a WPT manifest using wevtutil - performanceLINQ to SQL - group by day / week / month - c #Is it possible to deploy a solution for a web application so that its functions are visible only in this web application? - deploymentHow can I just open Overlay (for example, a dialog without a title) in jQuery UI - jquery-uiPulling information from array_count_values ββ- sortingAll Articles