<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Gsub</id>
		<title>Gsub - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Gsub"/>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Gsub&amp;action=history"/>
		<updated>2026-07-28T12:17:13Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.1</generator>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Gsub&amp;diff=4080&amp;oldid=prev</id>
		<title>Kowy: New page: __NOTOC__ {{Global Header}} {{Global Announcement}}  == Overview == A spell function returning the string with every occurence of a given pattern replaced by another string.  == Usage == &lt;...</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Gsub&amp;diff=4080&amp;oldid=prev"/>
				<updated>2010-09-08T12:41:27Z</updated>
		
		<summary type="html">&lt;p&gt;New page: __NOTOC__ {{Global Header}} {{Global Announcement}}  == Overview == A spell function returning the string with every occurence of a given pattern replaced by another string.  == Usage == &amp;lt;...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Global Header}}&lt;br /&gt;
{{Global Announcement}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
A spell function returning the string with every occurence of a given pattern replaced by another string.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
string gsub(strSource, strRegEx, strReplacement);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* strSource - source string to be replaced&lt;br /&gt;
* strRegEx - regular expression pattern&lt;br /&gt;
* strReplacement - by which string should be pattern replaced&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
Returns changed string or the same string if pattern does not match.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* Convert several lines to a one comma separated string&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
 gsub(errorStr,&amp;quot;\n&amp;quot;, &amp;quot;, &amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kowy</name></author>	</entry>

	</feed>