I know that there are many ASN.1 parser out there but they cost quite a lot and as such, I am trying to write my own.
I am kind of new to Regular Expression so in order to extract the text for the placeholders A, B, C and D, what should the Regular Expression be in C#?
A ::= B
{
C1 D1,
C2 D2,
C3 D3
}
where A, C and D can be any valid word which consists of any combination of the following
A-Z
a-z
0-9
_
And B can be any ASN.1 types such as "SEQUENCE", "SEQUENCE OF", "CHOICE", "UTF8String", etc. A full list can be found in "Universal Class Tags" table at this link.