LoginSignup
0
0

More than 5 years have passed since last update.

sublime text / 正規表現 > AND/論理積 > GetFileNameとfastcallを含む行を検索する > ^(?=.+GetFileName)(?=.+fastcall)

Last updated at Posted at 2016-02-15
動作確認
Sublime Text 2 on Windows 7 pro

以下のような実装があるとする。

static String __fastcall CPdfMake::GetFileName(TDate procDate, String prefix, String suffix);

関数の定義、宣言だけ見つけたい場合は GetFileName と fastcall という文字が同時に成立するものを探すことになる。

v0.1

論理積の参考 http://qiita.com/liburari/items/dbcd0b8af3781d221424

上記のリンクを参考にして、Ctrl+Fで表示される Find: に以下のように入力して検索するといいようだ。

^(?=.*GetFileName)(?=.*fastcall)

もっと簡単な入力方法はないものか。

v0.2 (1回以上)

.*とした時は0回以上のようだ。
1回以上の場合は.+とするらしい 参考

以下のようにした。

^(?=.+GetFileName)(?=.+fastcall)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0