Created
September 7, 2019 06:40
-
-
Save KevinMarquette/8f0d55a49833a0fc5941b8d98500a016 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$path = 'D:\Games\Blizzard\World of Warcraft\_classic_\Interface\AddOns\ISBoxer\ISBoxer.toc' | |
$data = Get-Content $path | |
$properties = @{} | |
$pattern = '## (?<propertyName>[^:]*): (?<propertyValue>.*)' | |
foreach($line in $data) | |
{ | |
if($line -match $pattern) | |
{ | |
$properties[$Matches.propertyName] = $Matches.propertyValue | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment