LoginSignup
1
1

More than 5 years have passed since last update.

iTerm2 Trigger Regular Expression

Last updated at Posted at 2015-04-07

iTerm2のRegular Expressionを使って
tailや
mysqlコンソールに色を付ける

  • SQLキーワードに色を付ける
    Regular Expression:
    \s+(?i:select|update|insert|where|from|group by|order by|and|as|in)\s+
    Action: Highlight Text
    Parameters: Green Foreground

  • 日付に色を付ける
    Regular Expression:
    ([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})
    Action: Highlight Text
    Parameters: Purple Foreground

正規表現のテストには

Menu-Edit-Find-Find...で検索ボックスが出たら、
ゴーグルをクリックして、RegularExpressionにチェックボックスを入れてから、
検索ボックスに正規表現を書く。これをそのままもっていけばいい

1
1
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
1
1