Example/lintThis.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
function Invoke-TrimString { param($targetText) $targetText -replace '^[ \t]+|[ \t]+$', '' } function Invoke-StripAll { param($targetText, $pattern) $count = 0 $targetText -replace $pattern, '' } |