5
上的emacsEmacs的正則表達式替換的情況
讓說,我有這樣的文字:
abcd abcd. 23
其中. 2
在捕獲
隨着\. [[:digit:]]
我能趕上的模式,但有多麼重要,而不.
輸出應該是abcd abcd 23
。
上的emacsEmacs的正則表達式替換的情況
讓說,我有這樣的文字:
abcd abcd. 23
其中. 2
在捕獲
隨着\. [[:digit:]]
我能趕上的模式,但有多麼重要,而不.
輸出應該是abcd abcd 23
。
您可以使用捕獲組來保留數字。
Replace regexp: \. ([[:digit:]])
Replace regexp with: \1
的\1
是指使用([[:digit:]])
捕獲的數字。
是的,那就是答案,謝謝。 Emacs上的 它將是 regexp \。 \\([[:digit:]] \\) regexp with:\ 1 – josifoski