What is a regular expression which matches the following strings?

[INFO] abcd1234_TCT_ALCATEL_one_touch_995 :   Successfully uninstalled com.example.mapdemo from abcd1234_TCT_ALCATEL_one_touch_995
[INFO] abcd1234_TCT_ALCATEL_995 :   Successfully installed /dev/foo/target/foo.apk to abcd1234_TCT_ALCATEL_995
[INFO] abcd1234_TCT_ALCATEL_one_touch_555 :   Attempting to start com.example.foo/com.example.foo.MainActivity

Two expressions would be sufficient: One matching by looking for ... Successfully ... and another by ... Attempting ... in the strings.

I want to use it for colorizing the build output of IntelliJ using the GrepConsole plugin.

有帮助吗?

解决方案

How about these two simple ones:

.*Successfully.*
.*Attempting.*

You could improve them from there. Adding the : and spaces maybe:

.*:   Successfully.*
.*:   Attempting.*

Edit

Make sure that the pattern is within reach of the search:

enter image description here

It will work:

enter image description here

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top