2017-10-10 1 views
-1

7個以上の数字を持つnotepad ++で行を見つける方法はありますか?メモ帳で壊れた行を見つける++

1 1 30 0.111000 -5.13248 -10.7541 12.5497 

私は、これらの数字の間にゼロまたは何か他のものがあることを知っています。
私は行をマークしようとしましたが、正しいコマンドが見つかりませんでした。

+0

これはあなたがコードを解決するために探している問題ですか? – tadman

+0

いいえ、行をマークするだけで、メモ帳++のマークタブから十分です。 –

+0

これで、手動でこれをどうやってやることができるのですか? – tadman

答えて

0
  • はCtrl +F
  • 検索する文字:^\h*(?:[+-]?\d+(?:\.\d+)?)(?:\h+[+-]?\d+(?:\.\d+)?){7,}\h*$
  • チェックラップ検索
  • チェック正規表現
  • 周りの文書で

説明:

^   : begining of line 
    \h*  : 0 or more horizontal spaces 
    (?:  : start non capture group 
    [+-]? : optional + or - 
    \d+  : 1 or more digit 
    (?:  : start non capture group 
     \.\d+ : a dot followed by 1 or more digit 
    )?  : the group is optional (ie. no decimals) 
)   : end group 
    (?:  : start non capture group 
    \h+  : 1 or more horizontal spaces 
    [+-]? : optional + or - 
    \d+  : 1 or more digit 
    (?:  : start non capture group 
     \.\d+ : start non capture group 
    )?  : the group is optional (ie. no decimals) 
){7,}  : the group must be present 7 or more times 
    \h*  : 0 or more horizontal spaces 
$   : end of line 
関連する問題