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.
基本的に、次のような名前のセットがあります
name1, name2, name3,
そして、メモ帳++の検索と置換で作成したいと思います
name1 = name1, name2 = name2, name3 = name3,
Find whatでそれらの name1 name2 を見つけるのに問題はありません:
[^\s,]+
しかし、Replace withで、「,」を「= what being find ,」に置き換えるにはどうすればよいですか?
ありがとう
何を見つけるか (正規表現が必要なものを正しく見つけたと仮定します):[^\s,]+
と置換する:$0 = $0
$0 = $0
$0"Find what" の式に一致するすべてを意味します
$0
検索フィールドで次の正規表現を使用してみることができます。
^(\ w + \ d)、
および置換フィールド:
$ 1 = $ 1
お役に立てば幸いです。