Home > database >  Regex must be in length range and contain letters and numbers
Regex must be in length range and contain letters and numbers

Time:03-29

I want to write a regex that will find strings of length 10-15 where all characters are [A-Z0-9] (spaces are ok but not other special characters). Some examples:

  • ABABABABAB12345 should match
  • ABAB1234ABA32 should match
  • ABA BA BABAB12345 should match
  • 1234567890987 should not match
  • ABCDEFGHIJK should not match
  • ABABAB
  • Related