Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-12-30 17:45
Flavor·Python

r"
(typedef\s+)?(?P<PACKED>\w+)?\s*(?P<TYPE>union|struct|enum)\s+(?P<NAME2>\w+)\s*\{(?P<FIELDS>.*?(?:\{.*?\}.*?)*?)\}(?P<NAME>[^;]*);
"
sg
Open regex in editor

Description

test struct c regex

Submitted by anonymous