#!/bin/bash
s="define('HTTP_SERVER', 'http://localhost:31270');"
echo $s | sed -r 's,^(\S*HTTPS*_SERVER\S*\s*\x27https*://)\S*(\x27\);)$,\1test.com\2,'