Multiple choice technology programming languages

In Perl, a/n ________ is a special character or a sequence that will define the number of times the previous character or sequence appears.

  1. character class

  2. metacharacter

  3. assertion

  4. quantifier

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A quantifier in regular expressions specifies how many times the preceding character or group must match. Common quantifiers include * (0 or more), + (1 or more), ? (0 or 1), and {n,m} (n to m times). This is the standard definition in regex syntax.