正規表現: 別の記号を含む記号間のテキスト/文字列 (特定の文字列を含むタグ) を選択します。

正規表現: 別の記号を含む記号間のテキスト/文字列 (特定の文字列を含むタグ) を選択します。

またはを含む場合にのみ=> 、 その間のすべてのテキストを選択したい=>[]

=> predici-video [date] =>私と彼女の中で、私はあなたを愛しています。

だからこれだけ=> predici-video [date] =>

答え1

検索する :=>.*(\[|\]).*=>

説明:

  • .*- 0文字以上
  • (one|two)- どちらか一方
  • \[- キャラクターが[逃げました。

notepad++からのスクリーンショット:


ここに画像の説明を入力してください

答え2

  • Ctrl+F
  • 検索対象:(?<==>)[^=>]*[][][^=>]*(?==>)
  • チェック 包み込む
  • チェック 正規表現
  • Find All in Current Document

説明:

(?<==>)     # positive lookbehind, make sure we have => before
[^=>]*      # 0 or more any character that is not = or >
[][]        # character class, matches [ or ]
[^=>]*      # 0 or more any character that is not = or >
(?==>)      # positive lookahead, make sure we have => after

もキャッチしたい場合は=>、次のようにします。=>[^=>]*[][][^=>]*=>


スクリーンショット(前):

ここに画像の説明を入力してください

スクリーンショット(後):

ここに画像の説明を入力してください

関連情報