Reading official docs it's obvious that PowerShell -match
operator is more powerful than -like
(due to regular expressions). Secondly, it seems ~10 times faster according to this article https://www.pluralsight.com/blog/software-development/powershell-operators-like-match.
Are there specific cases when I should prefer -like
instead of -match
? If there not, why at all should I use -like
? Does it exist because of historical reasons?