Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio and regex search (find more words)

I need to find two or more terms within the same file in the project. My guess is that I have to use regex as the search term.

How can I formulate regex to search for "term1" and "term2" for all files in the project?

As I remember IntelliJ support regex search, but I cannot make it work in Android Studio.

like image 988
sandalone Avatar asked Feb 04 '15 15:02

sandalone


1 Answers

Regex search seems to be fully ported to Android Studio. I have been using it for the last 2 weeks, and so far faced no issues with it.

For those who would like to use regex search for "2 terms in 1 file", they can use the following form Term1[\w\W]*Term2

like image 151
sandalone Avatar answered Oct 13 '22 07:10

sandalone