The project needs multi-language support, and the Chinese written in the code needs to be extracted. Since there are also a lot of Chinese in the comments, the Chinese in the comments should be excluded when searching.
The biggest difference between the strings in the code all start with double quotes , so as long as you use double quotes in the regular expression, you can easily exclude comments, no matter if it is a multi-line comment /***/ is still a single-line comment//.
Final regular expression: "[ \w\_[]\[\]]*[\u4e00-\u9fa5]+
In order to speed up the search speed, you can use the partial search of eclipse,
1. First select a project or directory
2. Select selected resources in the scope area
This will not search the entire workspace.