Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iTerm2 trigger case insensitive [duplicate]

Recently I discovered iTerm2's wonderful feature: triggers. Now I want iTerm to highlight some pieces of text, for exampeo error, fatal, etc. I want those triggers to be case-insensitive, but I'm having a hard time setting up these triggers. According the documentation, iTerm's regular expressions are conform the ICU regular expressions rules, which state that I can use the (?i) flag to match case insensitive.

I tried a lot, including (?i)/error, (?i)error, etc., but none work. Please see screenshot below; any idea how to match case insensitive?

enter image description here

like image 713
Rogier Lommers Avatar asked Nov 02 '16 07:11

Rogier Lommers


1 Answers

Well, for some reason after clearing out all rules and entering the following, it all started to work :).

(?i)error|panic|fatal

like image 159
Rogier Lommers Avatar answered Nov 02 '22 16:11

Rogier Lommers