2017-10-01 12 views

答えて

2
  • Ctrlキー + H
  • 何を検索:
  • . matches newline
  • すべての置き換えをチェックしない
  • チェック正規表現の周り$2 - $1
  • チェックラップ:^(.+?) - (.+?)$
  • はと交換

説明:

^  : begining of line 
(.+?) : group 1, 1 or more any character, not greedy 
-  : literally a space, a dash, a space 
(.+?) : group 2, 1 or more any character, not greedy 
$  : end of line 
+0

''で何のために? – bolov

+0

@bolov:それは非欲張り量量子です。http://www.regular-expressions.info/repeat.html – Toto

+0

ありがとうございます。私はそれを数回使用することができたことを知っています:p – bolov

関連する問題