Skip to content

Instantly share code, notes, and snippets.

@martin9700
Created March 23, 2015 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save martin9700/f25ec20d65f806407ec8 to your computer and use it in GitHub Desktop.
Save martin9700/f25ec20d65f806407ec8 to your computer and use it in GitHub Desktop.
$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