C 構造体の定義に一致する正規表現が必要です。これは私のターゲットデータです:
typedef struct
{
}dontMatchThis;
typedef struct
{
union //lets have a union as well
{
struct
{
int a
//a comment for fun
int b;
int c;
};
char byte[10];
};
}structA;
typedef から strunctA まで、structA の定義のみを一致させたいと考えています。
私が試してみました :
typedef[\s\S]+?structA
しかし、貪欲でない修飾子を使用していますが、これは両方の構造に一致しています。助言がありますか