名稱：
	replace_string - 用其他字串替換一個字串中符合條件的字串。
語法：
	string replace_string( string str, string pattern, string replace );
	string replace_string( string str, string pattern, string replace, 
		int max );
	string replace_string( string str, string pattern, string replace, 
		int first, int last );

	字串 replace_string( 字串 字串, 字串 樣式, 字串 替換 );
	字串 replace_string( 字串 字串, 字串 樣式, 字串 替換,
		整數 最多次 );
	字串 replace_string( 字串 字串, 字串 樣式, 字串 替換,
		整數 第一個, 整數 最後 );
用法：
	replace_string() 將「str」中所有的「pattern」替換成「replace」。如
	果「pattern」的長度為零，就傳回原來的「str」。如果傳回的字串超過系
	統定義的最大字串長度，則傳回一個 undefindp() 為 1，stringp() 為 0 
	的值。

	replace_string() 可以藉由長度為零的「replace」除去字串中的
	「pattern」。舉例來說：replace_string(" 1 2 3 ", " ", "") 會傳回 
	"123"。replace_string() 執行的速度比使用 explode()／implode() 快。

	第四和第五個參數可以選擇〈為了相容於以前的版本〉。這兩個附加的參數
	功用如下：

	四個參數：

	指定最多替換幾次〈從 1 開始算〉。如果指定為 0，就當作是全部都換。所
	以 replace_string( "xyxx", "x", "z", 2 ) 會傳回 "zyzx"。

	五個參數：

	第四個和第五個參數限制符合的範圍，限制條件如下：

	* first < 1：從頭開始全部替換。
	* last == 0 或 last > 最高符合數 (max_matches)：全部替換到最後。
	* first > last：完全不改變。

	舉例：replace_string( "xyxxy", "x", "z", 2, 3 ) 傳回 "xyzzy"。
參考：
	sscanf, explode, strsrch
作者：
	Tim Hollebeek  Beek@ZorkMUD, Lima Bean, IdeaExchange, and elsewhere
翻譯：
	spock@muds.net		2000.Aug.28.	v22 版
