Regular Expressions in Powershell
#$regularexpression will contain our regular expression, which in the example is 'href="/........">'
$regularexpression=New-Object Text.RegularExpressions.Regex 'href="/........">',("Singleline", "IgnoreCase")
#$regexmatches will contain the resulting matches
$regexmatches = $regularexpression.matches($contentvariable)
Comments