How to filter with multiple keyword in Android studio?

Viewed 110

I was trying to check logs for my app with Android Studio. But I need to filter with either of two keywords. I've tried this (foo|bar) but only first filter foo is working. How can I filter properly?

Android Studio Filter Android Studio Filter

2 Answers

Use regex search.

  1. check Regex.
  2. add your Regex expression.
^(.*(foo|bar)).*$

enter image description here

It works if you removes parentheses and spaces.

A correct regex based on the image you posted might be:

foo|okhttp

enter image description here

Related