Hi,
I'm trying to match a string and then use grouping to create a new string:
(let ((url (browse-url-url-at-point)))
(if (string-match "http://domain/\\([0-9]+\\)/\\([a-z]+\\)\.\\([0-9]+\\)" url)
(setq filename (concat (match-string 1 url) "_" (match-string 2) "." (match-string 3) ".xml"))))
When I (print url) I get the following
"http://domain/1234/action.1234567"
When I (print filename) after a successful match I get the following:
#("1234_ublish.eport s.xml" 0 5 nil 5 11 (face nxml-element-local-name-face fontified t) 11 12 nil 12 17 (face nxml-element-local-name-face fontified t) 17 18 (fontified t) 18 19 (face nxml-attribute-local-name-face fontified t) 19 23 nil)
Why is this happing?