I am using the vim editor and I wanted to empty out all methods in the class, for instance
class A {
public:
int getNumber() const {
return number;
}
void setNumber(int num) {
number = num;
}
};
I wanted to have a regex where I could substitute so that the result would be this
class A {
public:
int getNumber() const;
void setNumber(int num};
};
I know I can use %s for global subtitution but getting everything under the method body is what I am looking for.