Guest User

Untitled

a guest
Apr 26th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public void testRegex(string textToValidate){ string = pattern = @"^w{2,15}$"; Regex rgx = new Regex(pattern); if (!rgx.IsMatch(textToValidate)){ Console.WriteLine (String.Format("Error en la entrada {0}", textToValidate)); }else{ Console.WriteLine (String.Format("Correcto la entrada {0}", textToValidate)); } }
Add Comment
Please, Sign In to add comment