Simple PHP should do it if you do not know regular expressions.
$string = "abcd123xyz";
if((substr($string,0,3)=="abc") && (substr($string,-3)=="xyz"))
{
$string = "this is a test";
}
echo $string;
Reputation Points: 15
Solved Threads: 5
Junior Poster in Training
Offline 87 posts
since Aug 2005