PowerShell - Regular Expressions
Identify the error in this PowerShell regex usage:
$email = 'test@example.com'
if ($email -match '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2}') { 'Valid' } else { 'Invalid' }