219k views
5 votes
Which statement is NOT true regarding regular expression quantifiers? Group of answer choices They act on the preceding pattern element They can operate on groups and character classes In order to use a plus sign "+" quantifier as a literal character, you must first 'escape' it using a backslash '\' character The question mark quantifier "?" will match the preceding element exactly one time

User Nutters
by
6.5k points

1 Answer

2 votes

Answer:

"The question mark quantifier "?" will match the preceding element exactly one time" is the correct answer to the given question .

Step-by-step explanation:

The Quantifiers are defined as it determine how the several occurrences of a set of symbols, categories, or the characters should be found throughout the input to searching the matches.

  • The * quantifier in the regular expression corresponds the zero or more then zero to the previous item. it is represented by {0,} quantifier
  • The + quantifier in the regular expression appears to fit in one or more times with the previous item. it equates with {1} quantifier.
  • The? Quantifier in regular expression compares zero or once of a previous item. It equates with {0,1}.
  • All the option are true regarding regular expression quantifiers so these option are incorrect according to the question
User Heatsink
by
6.5k points