Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex Powershell正则表达式下四个字符_Regex_Powershell_Powershell 2.0 - Fatal编程技术网

Regex Powershell正则表达式下四个字符

Regex Powershell正则表达式下四个字符,regex,powershell,powershell-2.0,Regex,Powershell,Powershell 2.0,我正试图想出一个正则表达式来获得后面的四个字符 我正在读取一个文件,可以找到部分,但无法获得接下来的四个字符。正则表达式中的语法是什么 这是我目前的语法: [string] $RunTimeLine = (Select-String -Path $IDCSwiftFlowXMLFile -pattern "<time>") $RunTime = [regex]::match($RunTimeLine,"'<Time>".Groups[0].Value 我尝试在时间标签之

我正试图想出一个正则表达式来获得后面的四个字符

我正在读取一个文件,可以找到