• Register
0 votes
51 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]
7 5 3
5,380 points

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.
8 5 2
10,530 points

Related questions

0 votes
2 answers 549 views
549 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 21 views
21 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 maddi86 5.4k points
0 votes
2 answers 19 views
1 vote
1 answer 27 views
27 views
Problem: I wrote a program in python to check if a given number is sparse or not. So I wrote this code: def IsSparse(n): if ((n<<1) & (n>>1)): return 0 return 1 print(IsSparse(35)) print(IsSparse(16)) print(IsSparse(12)) print(IsSparse(72)) And when I run this or ... . The output is: 1 1 1 1 But the actual output should be: 0 1 0 1 What should I do to get the actual result? Thanks in advance.
asked Apr 22 samhaz 5k points
1 vote
1 answer 1.3K views
1.3K views
Problem : Need solution on bellow problem there are 4 bytes in an ipv4 address. what is the highest decimal value you can have for one byte?
asked Nov 8, 2019 peterlaw 6.9k points