Forum Discussion

gongyan's avatar
gongyan
Copper Contributor
Dec 24, 2021
Solved

Regarding the problem of -match not updating the $Matches variable after matching

这是我代码的一部分       $Matches = 0 $url_0_0_regex = '(?<=a href="\.\./\.\./\.\./).+?(?=">2<)' #$url_1_context #sleep -Seconds 50 $result_bool = $url_1_context -match $url_0_0_regex ...
  • farismalaeb's avatar
    Dec 24, 2021
    $Matches hold the success matches and its a hashtable
    maybe the 0 you are getting is the first key of the hashtable
    try $Matches.Values
    can you provide a string of matching?

Resources