I had a similar need (and a similar lack of powershell experience), but she collected the complete answer from the other answers on this page and a bit more research.
I also wanted to avoid handling regular expressions, since I don’t need it either - just a simple line replacement - but in a large file, so I didn’t want it to be loaded into memory.
Here is the command I used (adding lines to read):
Get-Content sourcefile.txt
| Foreach-Object {$_.Replace('http://example.com', 'http://another.example.com')}
| Set-Content result.txt
! (, , ), , .