Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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