PowerShell - Regular Expressions
What is the output of this PowerShell code?
$text = "PowerShell is fun"
if ($text -match "fun") { "Yes" } else { "No" }$text = "PowerShell is fun"
if ($text -match "fun") { "Yes" } else { "No" }$text -match "fun" returns True.-match returns True [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions