PowerShell - Control Flow
Find the error in this PowerShell code:
switch -Regex ($value) {
'^foo' { 'Starts with foo' }
'bar$' { 'Ends with bar' }
default { 'No match' }
}
$value = 'foobar'