EXHIBIT 4.7 AMENDED AND RESTATED REGISTRATION RIGHTS AGREEMENT THIS AMENDED AND RESTATED REGISTRATION RIGHTS AGREEMENT (this "Agreement") is made and entered into as of October 23, 1997 by and between The Pantry, Inc., a Delaware corporation (the...