I am trying to extract the function name from a function call. For example:
(let ((str "(test-func")) (if (string-match "^(\\s_+" str) (message "ok") (message "no match")))
But this gives
"no match".. (For simplicity I reduced
str to the start of the real string. A real string could be for example
"(test-func a b)"
I think the problem is the
\s_ symbol constituent regex..