• Register
0 votes
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]
5.4k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution:

The correct answer is [1-4]
 
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]
 
This might help you.
10.5k points

Related questions

0 votes
2 answers 808 views
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?
asked Sep 29, 2019 anonymous
0 votes
1 answer 44 views
44 views
Problem: I am little bit confused, which statement is true? You can use wildcard metacharacters with the find command? True False
asked Feb 21, 2020 maddi86 5.4k points
0 votes
1 answer 36 views
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
asked Mar 24 sadi1982 36.3k points
0 votes
1 answer 38 views
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
asked Mar 23 shamimkhan 15.1k points
1 vote
1 answer 77 views
77 views
Problem: I need an approach that I should follow to proceed with any number 0 < n < 10 .
asked May 2 PkGuy 25.9k points
1 vote
1 answer 22 views
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 .
asked Apr 24 Raj Tyagi 16k points
0 votes
1 answer 2 views
2 views
Problem : One number and one uppercase character required.
asked Jun 30 Siam55 105k points
0 votes
1 answer 8 views
8 views
please help me to check one number and one uppercase character required ?
asked Apr 10 ashik 14.6k points
0 votes
1 answer 32 views
32 views
Problem: anyone who know this problem please help? how can you tell if a number is rational
asked Mar 23 Rohit kr 17.5k points
0 votes
1 answer 29 views
29 views
Problem: You are given an integer N. You need to print the series of all prime numbers till N. Now write a C++ program for prime number between 1 to n.
asked May 30 Junia Phoebe 83.8k points