I’m just looking thrugh a script that contains following line
$x = [regex]::match($text,’?).+(?=)’,“singleline”).value.trim()
Would someone mind explaining what’s going on here?
I’m guessing the expression is looking thrugh the contents of text contained in variable $text to fined a match for the word “domain” but if it was that simple it would only be $text -match “domain” so what’s all the rest doing then?