Devs268 Devs268
  • 25-06-2017
  • Mathematics
contestada

Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?

Respuesta :

mathmate
mathmate mathmate
  • 25-06-2017
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]
Answer Link

Otras preguntas

Please help me with this math question if you can.
Cliff is a postal worker, who placed a 0.60 kg package on a scale, compressing the scale by 0.03 m. What is the force constant of the spring in the scale?
Both Shintoism and Buddhism are practiced widely in which of the following countries? a. Japan b. China c. Sri Lanka d. India
Which parts of the body act as levers? a. muscles b. joints c. bones d. veins
Young people in wealthy countries take what they have for granted: they should care more about young people suffering in poor parts of the world, and do more to
Red blood cells have cell membranes that allow water, oxygen, carbon dioxide and glucose to pass through. All other materials are blocked from entering. This ma
What two factors influence how strong the gravitational pull is between two objects?
what types of story telling are most likely to use sarcasm or a humorous play on words
What were the responsibilities of the satrap?
Identify the lower quartile (Q1), the median (Q2), and the upper quartile (Q3) for this data set. {1, 2, 4, 5, 7, 7, 8, 9, 9, 10} Q1 = 1, Q2 = 7, Q3 = 10 Q1 = 4