Which of the following statements about regular expressions is true?

a. The quantifier * in a regular expression matches one or more occurrences of the preceding pattern.
b. The quantifier + in a regular expression matches zero or more occurrences of the preceding pattern.
c. The quantifier {n} in a regular expression copies exactly n occurrences of the preceding pattern.
d. None of the above.

d. None of the above.

Computer Science & Information Technology

You might also like to view...

A variable that can have values only in the range 0 to 65535 is a

a) four-byte int b) four-byte unsigned int c) two-byte int (d) two-byte unsigned int

Computer Science & Information Technology

What is wrong with the following code?

float scores[10], total; a. Cannot declare regular and array variables together. b. Arrays must be integers c. The 10 should be replaced with a variable name, whose value is input from the user d. Nothing.

Computer Science & Information Technology