using sed command to replace multiple lines

the file contains the follwoing lines

/*

  • Copyright (C) 1995-1996 by XXX Corporation. This program
  • contains proprietary and confidential information. All rights reserved
  • except as may be permitted by prior written consent.
    *
  • $Id: xxx_err.h,v 1.10 2001/07/26 18:48:34 zzzz $
    */

in this \n can be any where inside copy right stmt.
This should be replace with the following lines
/*

  • Copyright (C) 1995-2004 by YYY. All rights reserved.
  • This program contains proprietary and confidential information.
    */

I tried using the following commands

past="Copyright\s.*XXX Corporation\.[:word]*consent.[\s]"

pres='* Copyright (c) 2004 by YYY. All rights reserved.\

  • This program contains proprietary and confidential information.'

sed "s/$past/$pres/" $fileName > fileMod

but it is not matching with copyright stmt in the file. can somebody correct this

sed "s/$past/$pres/" $fileName > fileMod

use single code '

sed "s/'$past'/'$pres'/" $fileName > fileMod

try this ...