Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
emacsで
私がこのテキストを持っているとしましょう:
abcd abcd. 23キャッチするためにどこ. 2が重要か
abcd abcd. 23
. 2
\. [[:digit:]]パターンをキャッチできますが、なしで置き換える方法.
\. [[:digit:]]
.
出力は ですabcd abcd 23。
abcd abcd 23
キャプチャ グループを使用して数値を保持できます。
Replace regexp: \. ([[:digit:]]) Replace regexp with: \1
は、\1を使用してキャプチャされた数字を指し([[:digit:]])ます。
\1
([[:digit:]])