skip to Main Content

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


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

    Login or Signup to reply.
  2. Use regex search.

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

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search