Bird
0
0

Which quantifier in PowerShell regex matches zero or more occurrences of the preceding character?

easy📝 Conceptual Q2 of 15
PowerShell - Regular Expressions
Which quantifier in PowerShell regex matches zero or more occurrences of the preceding character?
A+
B{1}
C*
D?
Step-by-Step Solution
Solution:
  1. Step 1: Recall common regex quantifiers

    + means one or more, * means zero or more, ? means zero or one, {1} means exactly one.
  2. Step 2: Identify zero or more quantifier

    The asterisk (*) matches zero or more occurrences of the preceding character.
  3. Final Answer:

    * -> Option C
  4. Quick Check:

    Quantifier * = zero or more [OK]
Quick Trick: Asterisk (*) means zero or more times in regex [OK]
Common Mistakes:
  • Confusing + with * quantifier
  • Using ? instead of * for zero or more
  • Misunderstanding {1} as zero or more

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes