I have a problem where I cannot get a match string after a string. I think the string match works, at least it returns non nil, but I get an error when I try to get the match string. How should I do it?
Unsuccessful function:
(defun small-test ()
(string-match "\\([0-9]+\\)-v\\([0-9]+\\).txt" "2011-v9.txt")
(message (match-string 1))
)
source
share