I want to run regex search in VSCode for a file (among hundreds of other files) containing multiple strings appearing in a specific order, ignoring line breaks.
Example scenario: There's a file containing the below code:
class Bicycle {
public int gear;
public int speed;
public Bicycle(int gear, int speed) {
this.gear = gear;
this.speed = speed;
}
public void applyBrake(int decrement) {
speed -= decrement;
}
}
And I want to run a search to find this file using the following strings in a regex search:
"class Bicycle"
"this.gear = gear;"
"decrement;
}"
If possible, please provide a solution that matches the strings even if they are out of order, like:
"this.gear = gear;"
"decrement;
}"
"class Bicycle"