digits

  1. VBobCat

    Question Testing number of digits with Regular Expressions

    I have to test a string that must match this pattern: any number of digits, a slash, and two or four digits, but not three (it is a year). So I'm using this boolean expression: System.Text.RegularExpressions.Regex.IsMatch(texto, "^\d+/\d{2,4}$") And Not...
Top Bottom