Regular Expressions 101

Community Patterns

Wikipedia ISO 4217 (Currency Codes) table to C# enum

1

Regular Expression
.NET 7.0 (C#)

@"
(?'Code'[A-Z]{3})\t(?'Number'[0-9]{3})\t(?'NumbersAfterDecimal'.*)\t(?'Name'.*)\t(?'UsedIn'.*)
"
gm

Description

This converts the values in this table to C# code.

Example:

pulic enum Iso4217
{
    /* output here */
}
Submitted by Diemaco - 10 months ago