How to write a regex, that capture every group of these structures?
Tried this, but this just captures everything (.*{.*}$)
Want to have a group for each so that I can extract each one individually
NewRequest {
string id = 1;
string name = 2;
}
NewResponse {
int64 id = 1;
string name = 2;
}
Complete structure:
NewRequest {
string id = 1;
string name = 2;
}
NewResponse {
int64 id = 1;
string name = 2;
}
NewResponse {
int64 id = 1;
string name = 2;
}
NewResponse {
int64 id = 1;
string name = 2;
}
NewResponse {
int64 id = 1;
string name = 2;
}