I'm trying to figure out the best way to replace a string between 2 other strings. I believe regex is necessary for this.
Input string: "http://domainabc.com/dir1/dir2"
Output string: "http://domainxyz.com/dir1/dir2"
Only the domain will change - not the subdirectories.