<?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_SubStrReplace</id>
		<title>Core Function SubStrReplace - 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_SubStrReplace"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrReplace&amp;action=history"/>
		<updated>2026-04-12T10:20:28Z</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_SubStrReplace&amp;diff=4757&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrReplace&amp;diff=4757&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:32Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrReplace&amp;diff=4756&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrReplace&amp;diff=4756&amp;oldid=prev"/>
				<updated>2014-08-11T21:41:03Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:41, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrReplace&amp;diff=2930&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; SubStrReplace( &lt;expression&gt;, &lt;replacement&gt;, &lt;start&gt;, &lt;length&gt; ) &lt;/pre&gt;  === Description ===  Replace text within a portion of a string.  Replaces a copy of string delimited...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_SubStrReplace&amp;diff=2930&amp;oldid=prev"/>
				<updated>2013-09-11T21:20:22Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; SubStrReplace( &amp;lt;expression&amp;gt;, &amp;lt;replacement&amp;gt;, &amp;lt;start&amp;gt;, &amp;lt;length&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Replace text within a portion of a string.  Replaces a copy of string delimited...&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;
SubStrReplace( &amp;lt;expression&amp;gt;, &amp;lt;replacement&amp;gt;, &amp;lt;start&amp;gt;, &amp;lt;length&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Replace text within a portion of a string.&lt;br /&gt;
&lt;br /&gt;
Replaces a copy of string delimited by the (optionally) start and (optionally) length parameters with the string given in replacement.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== expression ====&lt;br /&gt;
&lt;br /&gt;
The string to use. &lt;br /&gt;
&lt;br /&gt;
==== replacement ====&lt;br /&gt;
&lt;br /&gt;
The replacement string. &lt;br /&gt;
&lt;br /&gt;
==== start ====&lt;br /&gt;
&lt;br /&gt;
The position in subject to start searching.&lt;br /&gt;
&lt;br /&gt;
If start is positive, the replacing will begin at the start'th offset into string.&lt;br /&gt;
&lt;br /&gt;
If start is negative, the replacing will begin at the start'th character from the end of string. &lt;br /&gt;
&lt;br /&gt;
==== length ====&lt;br /&gt;
&lt;br /&gt;
If length is given and is positive, it represents the length of the portion of string which is to be replaced.&lt;br /&gt;
&lt;br /&gt;
If it is negative, it represents the number of characters from the end of string at which to stop replacing.&lt;br /&gt;
&lt;br /&gt;
If it is not given, then it will default to strlen( string ); i.e. end the replacing at the end of string. &lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
The result string is returned.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
None.&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;
$var = 'ABCDEFGH:/MNRPQR/';&lt;br /&gt;
say &amp;quot;Original: $var\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// These two examples replace all of $var with 'bob'.&lt;br /&gt;
say SubstrReplace($var, 'bob', 0);&lt;br /&gt;
say SubstrReplace($var, 'bob', 0, strlen($var));&lt;br /&gt;
&lt;br /&gt;
// Insert 'bob' right at the beginning of $var.&lt;br /&gt;
say SubstrReplace($var, 'bob', 0, 0);&lt;br /&gt;
&lt;br /&gt;
// These next two replace 'MNRPQR' in $var with 'bob'.&lt;br /&gt;
say SubstrReplace($var, 'bob', 10, -1);&lt;br /&gt;
say SubstrReplace($var, 'bob', -7, -1);&lt;br /&gt;
&lt;br /&gt;
// Delete 'MNRPQR' from $var.&lt;br /&gt;
say SubstrReplace($var, '', 10, -1);&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>