Multiple choice perl

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

In Perl regular expressions, a quantifier specifies how many times the preceding character, group, or character class should match. Common quantifiers include * (0 or more), + (1 or more), ? (0 or 1), and {n,m} (between n and m times). Character classes match sets of characters, metacharacters have special meanings, and assertions are zero-width matches.