Update a configuration file: Difference between revisions
m
→{{header|PowerShell}}
Line 1,659:
$line = $line -replace "^\s*","" ## Strip leading whitespace
if ($line -match "[;].*\s*") {continue} ## Strip semicolons
switch -Regex ($line)
{
"(^$)|(^#\s.*)"
{
$line = $line
|