Regex does not match when run in a script, but matches when run in console?

前端 未结 0 1657
自闭症患者
自闭症患者 2020-12-07 05:21

I have the following code, that looks if some values match a regex

$ValueRegex = [PSCustomObject]@{
    "year" = "^(201[0-9]|2020)$"
    &         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题