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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.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 - Fatal编程技术网

Regex PowerShell正则表达式:两个字符之间的匹配不应包括它们

Regex PowerShell正则表达式:两个字符之间的匹配不应包括它们,regex,powershell,Regex,Powershell,您能否帮助我了解如何在PowerShell变量中存储捕获组值 在PowerShell中,这个正则表达式给了我 >我喜欢比萨饼,它在第一组。否则,请使用[regex]:matches($postLeadtext,(?)[^通常建议使用相关的(html/XML)解析器来读/写结构化文本,而不是使用string(/regex)方法。

您能否帮助我了解如何在PowerShell变量中存储捕获组值

在PowerShell中,这个正则表达式给了我


>我喜欢比萨饼,它在第一组。否则,请使用
[regex]:matches($postLeadtext,(?)[^通常建议使用相关的(html/XML)解析器来读/写结构化文本,而不是使用string(/regex)方法。