Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string pattern = @"((?:[GE-[RGrp]+))";
- foreach (var AzureResponse in Response)
- {
- if (AzureResponse.name!= null)
- {
- Console.WriteLine("{0},{1} a valid resource name.", AzureResponse.name, Regex.IsMatch(@AzureResponse.name, pattern) ? "is" : "Is not");
- }
- }
Add Comment
Please, Sign In to add comment