私は文字列と一致して、新しい文字列を作成するために、グループ化を使用しようとしている:マッチング正規表現
(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"))))
I(印刷URL)私は
"http://domain/1234/action.1234567"
を以下の取得
I(印刷ファイル名)が成功した試合後、私は次のように取得する場合:
#("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)
なぜこのhappingはありますか?