by shigemk2

当面は技術的なことしか書かない

Emacsで雑な正規表現をやる

query-replace-regexp

or

replace-regexp

つかいかたはせつめいふよう。

M-x query-replace RET string RET newstring RET
:.*:

とか

:.*?:

とか。上が最長一致で下が最短一致。