PowerShell - Regular ExpressionsWhich quantifier in PowerShell regex matches zero or more occurrences of the preceding character?A+B{1}C*D?Check Answer
Step-by-Step SolutionSolution:Step 1: Recall common regex quantifiers+ means one or more, * means zero or more, ? means zero or one, {1} means exactly one.Step 2: Identify zero or more quantifierThe asterisk (*) matches zero or more occurrences of the preceding character.Final Answer:* -> Option CQuick Check:Quantifier * = zero or more [OK]Quick Trick: Asterisk (*) means zero or more times in regex [OK]Common Mistakes:Confusing + with * quantifierUsing ? instead of * for zero or moreMisunderstanding {1} as zero or more
Master "Regular Expressions" in PowerShell9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More PowerShell Quizzes Error Handling - Try-Catch-Finally - Quiz 1easy Error Handling - Throw statement - Quiz 14medium File and Directory Operations - Reading file content (Get-Content) - Quiz 12easy Functions - Default parameter values - Quiz 15hard Functions - Why functions organize scripts - Quiz 6medium Functions - Why functions organize scripts - Quiz 2easy Functions - Default parameter values - Quiz 5medium Modules and Script Organization - Script modules vs binary modules - Quiz 3easy Regular Expressions - Common regex patterns - Quiz 5medium Working with Objects - Why PowerShell is object-oriented - Quiz 3easy