Question
Is it possible to add a second or more string in the field input of 'Find in Files'?
Example:
public static void main(String[] args) {
System.out.println("123" + "this");
System.out.println("123" + "is");
System.out.println("123" + "sparta");
}
If one types "123" in Find in Files, it will return all three lines in the results:
How does one narrow the search to get a single hit only for the first occurrence, for instance?
Answer
One can use the Regular Expressions (regex) functionality to search for and replace specific patterns of text.
To enable or disable the functionality in Find in Files, toggle the following button and enter your regex expression:
Comments
0 comments
Please sign in to leave a comment.