【发布时间】:2020-02-07 01:39:23
【问题描述】:
能否请您帮我获得所需的输出,其中 SIT 是环境,文件类型是属性,我需要删除环境和字符串的扩展名。
#$string="<ENV>.<can have multiple period>.properties
*$string ="SIT.com.local.test.stack.properties"
$b=$string.split('.')
$b[0].Substring(1)*
必需的输出:com.local.test.stack //可以有多个句点
【问题讨论】:
标签: regex powershell split