Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$Search = $Line | Select-String -Pattern "<th>.*?</th>" -AllMatches
$Index = 0
ForEach ($Column in $Search.Matches)
{
If (($Column.Groups.Value -replace "<th>|</th>","") -eq $ColumnName)
{
Write-Verbose "$(Get-Date): $ColumnName located at column $($Index + 1)"
Break
}
$Index ++
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment