I have a problem where I fail to get a match-string after a string-match. 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?
The failing function:
(defun small-test ()
(string-match "\\([0-9]+\\)-v\\([0-9]+\\).txt" "2011-v9.txt")
(message (match-string 1))
)