<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/replace</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 12:53:26 GMT</pubDate>
<item>
<title>(JavaScript) replaceAll - mattlowden</title>
<link>http://snipplr.com/view/68686/replaceall/</link>
<description><![CDATA[ <p>Replace all instances of a string without using Regex.</p> ]]></description>
<pubDate>Wed, 21 Nov 2012 12:23:58 GMT</pubDate>
<guid>http://snipplr.com/view/68686/replaceall/</guid>
</item>
<item>
<title>(JavaScript) Converte tutti i newline in tag br - kajinka13</title>
<link>http://snipplr.com/view/63130/converte-tutti-i-newline-in-tag-br/</link>
<description><![CDATA[ <p>Converte tutti gli \n in </p> ]]></description>
<pubDate>Tue, 07 Feb 2012 07:40:24 GMT</pubDate>
<guid>http://snipplr.com/view/63130/converte-tutti-i-newline-in-tag-br/</guid>
</item>
<item>
<title>(JavaScript) Lead Tracking Sources (LTS) Javascript Example - ryarwood</title>
<link>http://snipplr.com/view/62881/lead-tracking-sources-lts-javascript-example/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 30 Jan 2012 08:47:37 GMT</pubDate>
<guid>http://snipplr.com/view/62881/lead-tracking-sources-lts-javascript-example/</guid>
</item>
<item>
<title>(JavaScript) Search and don\'t replace - ultranaut</title>
<link>http://snipplr.com/view/60101/search-and-dont-replace/</link>
<description><![CDATA[ <p>two awesome bits: using ''.replace() perform an action (other than replacing it) on some text, and a simple way to concatenate strings with a separator (retardedly simple but it always confuses me)</p> ]]></description>
<pubDate>Mon, 24 Oct 2011 05:48:10 GMT</pubDate>
<guid>http://snipplr.com/view/60101/search-and-dont-replace/</guid>
</item>
<item>
<title>(JavaScript) Replace domain on all href attributes - odenijs</title>
<link>http://snipplr.com/view/60051/replace-domain-on-all-href-attributes/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 21 Oct 2011 20:48:43 GMT</pubDate>
<guid>http://snipplr.com/view/60051/replace-domain-on-all-href-attributes/</guid>
</item>
<item>
<title>(JavaScript) String slash replace - dato</title>
<link>http://snipplr.com/view/59396/string-slash-replace/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 04 Oct 2011 19:18:33 GMT</pubDate>
<guid>http://snipplr.com/view/59396/string-slash-replace/</guid>
</item>
<item>
<title>(JavaScript) Javascript Replace All in string - psradich111</title>
<link>http://snipplr.com/view/58039/javascript-replace-all-in-string/</link>
<description><![CDATA[ <p>Replaces all matches in a string
used   str.replaceAll(find,replace);</p> ]]></description>
<pubDate>Fri, 19 Aug 2011 22:18:29 GMT</pubDate>
<guid>http://snipplr.com/view/58039/javascript-replace-all-in-string/</guid>
</item>
<item>
<title>(JavaScript) Supplanting Data with Equations - mejamiewilson</title>
<link>http://snipplr.com/view/58022/supplanting-data-with-equations/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 19 Aug 2011 10:28:11 GMT</pubDate>
<guid>http://snipplr.com/view/58022/supplanting-data-with-equations/</guid>
</item>
<item>
<title>(JavaScript) jQuery Image Replace using substring - inreflection7</title>
<link>http://snipplr.com/view/57682/jquery-image-replace-using-substring/</link>
<description><![CDATA[ <p>image rollovers in jquery are usually super easy. However it sucks when working with absolute image paths - like a separate media server or CDN. Heres a quick snippet using substring and lastIndexOf to swap out the image src.</p> ]]></description>
<pubDate>Tue, 09 Aug 2011 01:20:23 GMT</pubDate>
<guid>http://snipplr.com/view/57682/jquery-image-replace-using-substring/</guid>
</item>
<item>
<title>(JavaScript) Replace (update) a View in a ScrollableView in Titanium Mobile - chlab</title>
<link>http://snipplr.com/view/54340/replace-update-a-view-in-a-scrollableview-in-titanium-mobile/</link>
<description><![CDATA[ <p>It’s pretty straightforward, we loop the existing Views of the ScrollableView and copy each View, replacing the one to be change, to a new array. Then we tell the ScrollableView to use our new Views-array for it’s Views.
I hope this helps someone.</p> ]]></description>
<pubDate>Tue, 24 May 2011 22:29:17 GMT</pubDate>
<guid>http://snipplr.com/view/54340/replace-update-a-view-in-a-scrollableview-in-titanium-mobile/</guid>
</item>
<item>
<title>(JavaScript) Swap child nodes - jatkins</title>
<link>http://snipplr.com/view/50142/swap-child-nodes/</link>
<description><![CDATA[ <p>Released into the public domain. **Update 7/20/2011: Rewritten with a method that shouldn't lose values/selected files/etc. Earlier versions based on a solution found on [Stack Overflow](http://www.stackoverflow.com).**</p> ]]></description>
<pubDate>Sun, 06 Mar 2011 02:08:53 GMT</pubDate>
<guid>http://snipplr.com/view/50142/swap-child-nodes/</guid>
</item>
<item>
<title>(JavaScript) javascript replace all instances in a string - rumremix</title>
<link>http://snipplr.com/view/49187/javascript-replace-all-instances-in-a-string/</link>
<description><![CDATA[ <p>Normal replace() function only replaces first instance.</p> ]]></description>
<pubDate>Fri, 18 Feb 2011 09:54:36 GMT</pubDate>
<guid>http://snipplr.com/view/49187/javascript-replace-all-instances-in-a-string/</guid>
</item>
<item>
<title>(JavaScript) Replace multiple occurrences of a regex with replacements from an array - jatkins</title>
<link>http://snipplr.com/view/47649/replace-multiple-occurrences-of-a-regex-with-replacements-from-an-array/</link>
<description><![CDATA[ <p>Released into the public domain. `needle` will be replaced `needle.length` times with the next chronological item from `replacements`. `needle` must be a regex (with the global modifier **disabled**); to pass a string, escape it and pass as `new RegExp(escaped_string)`. _*Case sensitive.*_ The commented out code below the main block is an earlier, unnecessarily more complicated version kept for reference.</p> ]]></description>
<pubDate>Fri, 21 Jan 2011 09:34:21 GMT</pubDate>
<guid>http://snipplr.com/view/47649/replace-multiple-occurrences-of-a-regex-with-replacements-from-an-array/</guid>
</item>
<item>
<title>(JavaScript) No letters - only digits as input - webstylr</title>
<link>http://snipplr.com/view/43827/no-letters--only-digits-as-input/</link>
<description><![CDATA[ <p>useful if you only want digits as input</p> ]]></description>
<pubDate>Tue, 09 Nov 2010 23:14:56 GMT</pubDate>
<guid>http://snipplr.com/view/43827/no-letters--only-digits-as-input/</guid>
</item>
<item>
<title>(JavaScript) Javascript string replace (all occurrences) - fengelz</title>
<link>http://snipplr.com/view/37904/javascript-string-replace-all-occurrences/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 26 Jul 2010 18:07:23 GMT</pubDate>
<guid>http://snipplr.com/view/37904/javascript-string-replace-all-occurrences/</guid>
</item>
<item>
<title>(JavaScript) Pattern replace String prototype - Pjotor</title>
<link>http://snipplr.com/view/33637/pattern-replace-string-prototype/</link>
<description><![CDATA[ <p>Quick and dirty pattern string replacer.
Usage:
"my {color} {fruit}".prep({ color: "red", fruit: "apple"})</p> ]]></description>
<pubDate>Fri, 30 Apr 2010 04:21:54 GMT</pubDate>
<guid>http://snipplr.com/view/33637/pattern-replace-string-prototype/</guid>
</item>
<item>
<title>(JavaScript) JAVASCRIPT : Redirection en javascript avec window.location.replace() - alexandrepayet</title>
<link>http://snipplr.com/view/31729/javascript--redirection-en-javascript-avec-windowlocationreplace/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 14 Apr 2010 01:26:33 GMT</pubDate>
<guid>http://snipplr.com/view/31729/javascript--redirection-en-javascript-avec-windowlocationreplace/</guid>
</item>
<item>
<title>(JavaScript) Essential Javascript Techniques - alvincrespo</title>
<link>http://snipplr.com/view/28811/essential-javascript-techniques/</link>
<description><![CDATA[ <p>These are essential javascript techniques every javascriptr must know. I will be adding more to this list, let me know what you'd like to see. Thanks!</p> ]]></description>
<pubDate>Tue, 23 Feb 2010 17:52:23 GMT</pubDate>
<guid>http://snipplr.com/view/28811/essential-javascript-techniques/</guid>
</item>
<item>
<title>(JavaScript) Replace Newlines with BR, String Prototype - boondoklife</title>
<link>http://snipplr.com/view/26408/replace-newlines-with-br-string-prototype/</link>
<description><![CDATA[ <p>This will need to be either embeded or included and you can then just use this as such

myNewString = myStringVariable.nl2br();</p> ]]></description>
<pubDate>Wed, 13 Jan 2010 14:11:30 GMT</pubDate>
<guid>http://snipplr.com/view/26408/replace-newlines-with-br-string-prototype/</guid>
</item>
<item>
<title>(JavaScript) ByteArray.replace - aadsm</title>
<link>http://snipplr.com/view/26323/bytearrayreplace/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 12 Jan 2010 11:37:09 GMT</pubDate>
<guid>http://snipplr.com/view/26323/bytearrayreplace/</guid>
</item>
</channel>
</rss>