【发布时间】:2016-03-29 21:01:51
【问题描述】:
阅读official docs 很明显PowerShell -match 运算符比-like 更强大(由于正则表达式)。其次,根据这篇文章https://www.pluralsight.com/blog/software-development/powershell-operators-like-match,它似乎快了大约 10 倍。
是否存在我应该更喜欢-like 而不是-match 的特定情况?如果没有,我为什么要使用-like?是否因为历史原因而存在?
【问题讨论】:
标签: regex powershell match