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

165 views

## Problem:

I am new, I need help, can anyone help?
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?
a. 1-4
c. [1234]
b. [1-4]
d. [1,2,3,4]

## Solution:

Explanation:
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]

10.5k points

## Related questions

808 views
Problem: A ________ value in a loop can be either a positive or a negative number. Is this true of False? I am bit confused can anyone suggest?
44 views
Problem: I am little bit confused, which statement is true? You can use wildcard metacharacters with the find command? True False
36 views
Problem: I tried to find out the solution on the web when I face this problem but I did not get any fruitful information that I can continue if you read the above question and understand what is the solution of this please cooperate with me- Thanks
38 views
Problem: I am stuck during learning as I have already mentioned in my question someone please cooperate me to continue my project-Thanks
1 vote
77 views
Problem: I need an approach that I should follow to proceed with any number 0 < n < 10 .
1 vote
22 views
Problem: I wanted to know what is the use of * and .* in regular expressions . Like find *.jpg . I also want to know the difference between them .
2 views
Problem : One number and one uppercase character required.