<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_Replace</id>
		<title>Core Function Replace - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_Replace"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Replace&amp;action=history"/>
		<updated>2026-04-05T14:55:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Replace&amp;diff=1191&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; Replace( &lt;expression&gt;, &lt;find&gt;, &lt;replace&gt;, &lt;case-sensitive-flag&gt;, &lt;count&gt; ) &lt;/pre&gt;  === Description ===  Replace substrings within a string with other strings.  === Paramete...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Replace&amp;diff=1191&amp;oldid=prev"/>
				<updated>2011-12-02T13:56:05Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Replace( &amp;lt;expression&amp;gt;, &amp;lt;find&amp;gt;, &amp;lt;replace&amp;gt;, &amp;lt;case-sensitive-flag&amp;gt;, &amp;lt;count&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Replace substrings within a string with other strings.  === Paramete...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
Replace( &amp;lt;expression&amp;gt;, &amp;lt;find&amp;gt;, &amp;lt;replace&amp;gt;, &amp;lt;case-sensitive-flag&amp;gt;, &amp;lt;count&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Replace substrings within a string with other strings.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== expression ====&lt;br /&gt;
&lt;br /&gt;
The expression to search use (as a string).&lt;br /&gt;
&lt;br /&gt;
==== find ====&lt;br /&gt;
&lt;br /&gt;
The substring to find.&lt;br /&gt;
&lt;br /&gt;
==== replace ====&lt;br /&gt;
&lt;br /&gt;
The string to replace the found substring with.&lt;br /&gt;
&lt;br /&gt;
==== case-sensitive-flag ====&lt;br /&gt;
&lt;br /&gt;
Optional; If higher than zero the replace will be case-insensitive.&lt;br /&gt;
&lt;br /&gt;
Default case sensitive.&lt;br /&gt;
&lt;br /&gt;
==== count ====&lt;br /&gt;
&lt;br /&gt;
Optional; The number of times to replace.&lt;br /&gt;
&lt;br /&gt;
1 = Replace only ONCE.&lt;br /&gt;
&lt;br /&gt;
Default -1 (Replace all).&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Returns the new string, the number of replacements performed is stored in @extended.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$a = &amp;quot;The quick brown Fox jump jump jump jump&amp;quot;;&lt;br /&gt;
println(     Replace($a, &amp;quot;fox&amp;quot;, &amp;quot;Cat&amp;quot;)     ); // Will fail since case sensitive&lt;br /&gt;
println(     Replace($a, &amp;quot;fox&amp;quot;, &amp;quot;Cat&amp;quot;, 1)     ); // Will work&lt;br /&gt;
println(     Replace($a, &amp;quot;Fox&amp;quot;, &amp;quot;Cat&amp;quot;)     ); // Will work&lt;br /&gt;
println(     Replace($a, &amp;quot;jump&amp;quot;, &amp;quot;fly&amp;quot;, 1, 2)     ); // Will work (Replaces only 2 found matches)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>