Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intellij idea find by regex

i need to search for initialization of classes by name, the project is big, and i want to use regex to find the instances inside the intellij idea . Here is a list of classes name:

  1. BdService

  2. BdClusterService

  3. BdServiceClient

  4. BdClusterServiceClient

  5. BdServicesManager

  6. BdServiceClientsManager

I need an advice and regexs also, but maybe you know the proper way to find the initialization of this classes?

like image 743
Edward Gizbreht Avatar asked Aug 07 '17 12:08

Edward Gizbreht


People also ask

How do I find a character in Regex?

To match a character having special meaning in regex, you need to use a escape sequence prefix with a backslash ( \ ). E.g., \. matches "." ; regex \+ matches "+" ; and regex \( matches "(" . You also need to use regex \\ to match "\" (back-slash).

How do I search for text in IntelliJ?

From the main menu, select Edit | Find | Find in Files Ctrl+Shift+F . In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F . IntelliJ IDEA places the highlighted string into the search field.


1 Answers

You can try Find in Files (ctrl-shift-f):

  • tick "Regular expression"
  • text to find: Bd[a-zA-z]*Service
like image 154
vikingsteve Avatar answered Sep 19 '22 17:09

vikingsteve