Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
.NET 7.0 (C#)

@"
\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

Description

Initializing identifiers

Submitted by anonymous - a year ago