PowerShell String Comparison: -eq, -like, -match Explained ─□✕ March 22, 2026May 5, 2026 PowerShell Tips Editor 1 min read PowerShell String Comparison: -eq, -like, -match Explained PowerShell has three main string comparison operators. Learn when to use -eq for exact matches, -like for wildcards, and -match for regex.