views:

34

answers:

1

I just read little bit about macro and was trying to create the one in .net I was able to do very small operations since I dont know much about vb.net and regular expressions.

I want to create a properties and variable declaration for the below code. What will be the regular expression to parse this string. So that I can get all the components to create a property from this.

,<Status, tinyint,>

I am trying to create macro that can parse above string into

private byte _Status;
prublic byte Status { get; set; }
A: 

You want to use something along the lines of

(?<val>[A-Za-z]+)

to grab your values, where 'val' is the name of a matching group. Don't have a compiler infront of me to work out the exact syntax. Have a play on gskinner to get it right

Ian