昨日(
)
、テキスト内のすべてを置換しようとしましたが、以前の検索で見つかったものではありませんでした。良い解決策が見つかりませんでした。一つ一つ変えて作りました。
これは私の元のテキストです:
(Peter Jackson) is the man who..... (John Johnson) is the man who....
and (John Johnson) is also the man who.. not as (Jon Johnson)
more (letters) etc.
私の検索パターン:テキスト内のすべての文字
を に置き換えるにはどうすればよいですか? /(\a*\sJohnson)
(
)
[
]
結果は次のようになります。
[Peter Jackson] is the man who..... (John Johnson) is the man who....
and (John Johnson) is also the man who.. not as (Jon Johnson)
more [letters] etc.
編集
テキスト内の 1 つまたは複数の文字を置換する簡単な方法はありますか?