Respuesta :

using the current "regular expressions" in use in Java, Perl, and many other applications, this belongs to "character class" using the [ ] notation.
For characters "either" 1,2,3,4, we write
[1234]
or in this particular case,
[1-4]