Guest User

Untitled

a guest
Jan 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. string pattern = @"((?:[GE-[RGrp]+))";
  2. foreach (var AzureResponse in Response)
  3. {
  4.  
  5. if (AzureResponse.name!= null)
  6. {
  7. Console.WriteLine("{0},{1} a valid resource name.", AzureResponse.name, Regex.IsMatch(@AzureResponse.name, pattern) ? "is" : "Is not");
  8.  
  9.  
  10. }
  11.  
  12. }
Add Comment
Please, Sign In to add comment