
	replace_string(3)	MudOS v21c2		(5 Sep 1994)

	:
		replace_string() - 滻һִз.
	﷨:
		string replace_string( str, pattern, replace );
		string replace_string( str, pattern, replace, max );
		string replace_string( str, pattern, replace, first, last );

		string str, pattern replace;
		int max, first, last;

		ִ replace_string( str, pattern, replace );
		ִ replace_string( str, pattern, replace, max );
		ִ replace_string( str, pattern, replace, first, last );

		ִ str, pattern replace;
		 max, first, last;
	÷:
		replace_string()  str з pattern 滻
		ָ replace.  pattern û (Ϊ) , ʹԭ
		 str . صִִ, 򴫻һ
		 undefindp()  1, stringp()  0  ֵ.

		replace_string() ָ replace  Ϊյִ, ȥ
		ִض. ˵: replace_string(" 1 2 3 ", " ", "")
		ᴫ "123". replace_string() ִеٶȱ explode() 
		implode() .

		ĺ͵п (Ϊǰİ汾). 
		ӵĲµĹ:

		ĸ first:

		ָͬһִ滻 ( 1  ʼ). ָΪ 0,
		͵ȫ.  replace_string("xyxx", "x", "z", 2) 
		ᴫ "zyzx".

		 last:

		ƷġΧ:
		first < 1: ͷʼȫ滻.
		last == 0  last > ߷(max_matches): ȫ滻. 
		first > last: ȫı.
		: replace_string("xyxxy", "x", "z", 2, 3)  "xyzzy".
	ο:
		sscanf(3), explode(3), strsrch(3)
	:
		Zak@TMI-2 ׫дĲ.
	:
		Spock @ FF	97.Jun.2.		(printed 3/16/95)
