Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
@"
\s* ( (?<type>int(?:\s+long|\s+short)?|double(?:\s+long)?| long(?:\s+int|\s+double)?|short(?:\s+int)?|float|char) | (?<error>\w+|\w+\s*\,) ) \s+ (?: (?: (?: (?<error>int|double|float|char|long|short|[^,;a-zA-Z_].+?|[^,;]+?(?:\s+\w+?)+) | (?<id>[a-zA-Z_][a-zA-Z_0-9]*) ) (?:\s*\[\s*[1-9]\d*\s*\])* ) \s* (?:\,\s*|(?=\;)) )+ \s*\;\s*
"
gmx
Input 1
1
int abv, cde, doub1lel,ded, cto, int1; float ng23423, _ga45, astories; int af , f; int a, b, c;int short alt ; long double fgd [ 1 ], [1] , wef ; char _a[1], fi [ 3 ] [ 10] [ 4 ] ,g[1];int qw;