Im trying to replace an ever-changing IP address in a text file. Here is the code I'm using.
$ConfigFile = "C:\Temp2\ConfigFile.xml"overrides"
$content = [System.IO.File]::ReadAllText($ConfigFile).Replace("10.0.0.333","127.0.0.1")
[System.IO.File]::WriteAllText($ConfigFile, $content)
How do I make the 10.0.0.333 into a wildcard so it would work with any IP and change it back to the loopback address.