<?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/tags/replace</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 04 Jul 2008 17:44:24 GMT</pubDate>
<item>
<title>(PHP) Highlight within HTML/BBCode without source breaking - pateketrueke</title>
<link>http://snipplr.com/view/6718/highlight-within-htmlbbcode-without-source-breaking/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 14 Jun 2008 13:14:58 GMT</pubDate>
<guid>http://snipplr.com/view/6718/highlight-within-htmlbbcode-without-source-breaking/</guid>
</item>
<item>
<title>(PHP) Censor bad words with regexp - oso96_2000</title>
<link>http://snipplr.com/view/6332/censor-bad-words-with-regexp/</link>
<description><![CDATA[ <p>This function uses the power of regexp to check if some bad word are on the text, also offers the posibility to change those word for something else. Examples:

$texto = 'fuck off!';
filtrado($texto); returns true since a bad word has been found on the text
filtrado($texto, '[censored]'); //returns [censored] off!

And because regexp, this will work with something like "fck off!". You can see a more detailed example here:
http://www.otaku-anime.com/varios/filtro.php -- Example
http://www.otaku-anime.com/varios/filtro.php?source -- Source code of the example</p> ]]></description>
<pubDate>Mon, 19 May 2008 16:39:57 GMT</pubDate>
<guid>http://snipplr.com/view/6332/censor-bad-words-with-regexp/</guid>
</item>
<item>
<title>(ActionScript) String: Replace - mattkenefick</title>
<link>http://snipplr.com/view/6303/string-replace/</link>
<description><![CDATA[ <p>Replaces a string</p> ]]></description>
<pubDate>Mon, 19 May 2008 11:51:55 GMT</pubDate>
<guid>http://snipplr.com/view/6303/string-replace/</guid>
</item>
<item>
<title>(Ruby) Regex replace - noah</title>
<link>http://snipplr.com/view/5560/regex-replace/</link>
<description><![CDATA[ <p>Equivalent of the Perl code: url =~ s/foo/bar/</p> ]]></description>
<pubDate>Tue, 25 Mar 2008 14:09:21 GMT</pubDate>
<guid>http://snipplr.com/view/5560/regex-replace/</guid>
</item>
<item>
<title>(PHP) replace a string in a file - fris</title>
<link>http://snipplr.com/view/5335/replace-a-string-in-a-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 09 Mar 2008 09:25:19 GMT</pubDate>
<guid>http://snipplr.com/view/5335/replace-a-string-in-a-file/</guid>
</item>
<item>
<title>(C#) Replace invalid to valid file name - tranvinhnt</title>
<link>http://snipplr.com/view/5118/replace-invalid-to-valid-file-name/</link>
<description><![CDATA[ <p>Replace invalid to valid file name  by using RegEx</p> ]]></description>
<pubDate>Mon, 18 Feb 2008 22:16:47 GMT</pubDate>
<guid>http://snipplr.com/view/5118/replace-invalid-to-valid-file-name/</guid>
</item>
<item>
<title>(Bash) Perl Search and Replace One-liner with xargs -0 - ches</title>
<link>http://snipplr.com/view/5078/perl-search-and-replace-oneliner-with-xargs-0/</link>
<description><![CDATA[ <p>\Q...\E perl quoting means no ugly escaping in the regex. find's -print0 with xargs -0 is the secret to handling files with spaces in their names.</p> ]]></description>
<pubDate>Fri, 15 Feb 2008 14:02:45 GMT</pubDate>
<guid>http://snipplr.com/view/5078/perl-search-and-replace-oneliner-with-xargs-0/</guid>
</item>
<item>
<title>(Other) AS2 CASA ロードした画像をタイル上に並べる - daisuke103</title>
<link>http://snipplr.com/view/5062/as2-casa-/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 14 Feb 2008 11:59:49 GMT</pubDate>
<guid>http://snipplr.com/view/5062/as2-casa-/</guid>
</item>
<item>
<title>(Other) PHP 正規表現を使用して文字列を検索する - daisuke103</title>
<link>http://snipplr.com/view/5032/php-/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 12 Feb 2008 23:59:18 GMT</pubDate>
<guid>http://snipplr.com/view/5032/php-/</guid>
</item>
<item>
<title>(PHP) PHP ストリングの文字を置き換える - daisuke103</title>
<link>http://snipplr.com/view/5029/php-/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 12 Feb 2008 23:37:58 GMT</pubDate>
<guid>http://snipplr.com/view/5029/php-/</guid>
</item>
<item>
<title>(Bash) Remove whitespace at EOL in multiple files - sebastian_bergmann</title>
<link>http://snipplr.com/view/4742/remove-whitespace-at-eol-in-multiple-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Jan 2008 12:03:38 GMT</pubDate>
<guid>http://snipplr.com/view/4742/remove-whitespace-at-eol-in-multiple-files/</guid>
</item>
<item>
<title>(Bash) Replace string in multiple files - sebastian_bergmann</title>
<link>http://snipplr.com/view/4741/replace-string-in-multiple-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Jan 2008 12:01:52 GMT</pubDate>
<guid>http://snipplr.com/view/4741/replace-string-in-multiple-files/</guid>
</item>
<item>
<title>(Apache) Replace _ with - in almost every url (plus nice tag urls in movabletype) - eszpee</title>
<link>http://snipplr.com/view/4679/replace--with--in-almost-every-url-plus-nice-tag-urls-in-movabletype/</link>
<description><![CDATA[ <p>list the exceptions where you don't want to replace in the rewrite rules before the one that matches the underscore, and finish them with [L], otherwise they'll get replaced too.

[N] means rerun the whole replacing stuff once the line matched... careful with that.</p> ]]></description>
<pubDate>Sun, 20 Jan 2008 14:15:59 GMT</pubDate>
<guid>http://snipplr.com/view/4679/replace--with--in-almost-every-url-plus-nice-tag-urls-in-movabletype/</guid>
</item>
<item>
<title>(ActionScript) Replace Text - imhugo</title>
<link>http://snipplr.com/view/4615/replace-text/</link>
<description><![CDATA[ <p>// "display_txt" is an instance name of an already created textfield
// It's simply tracing the return value</p> ]]></description>
<pubDate>Wed, 16 Jan 2008 12:14:19 GMT</pubDate>
<guid>http://snipplr.com/view/4615/replace-text/</guid>
</item>
<item>
<title>(SQL) MySQL Mass Text/String Replace - andyhartleeds</title>
<link>http://snipplr.com/view/3937/mysql-mass-textstring-replace/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 19 Oct 2007 06:53:12 GMT</pubDate>
<guid>http://snipplr.com/view/3937/mysql-mass-textstring-replace/</guid>
</item>
<item>
<title>(CSS) Image Replace for Buttons - 1man</title>
<link>http://snipplr.com/view/3754/image-replace-for-buttons/</link>
<description><![CDATA[ <p>This allows you to replace the bog standard browser button (form buttons) with any image you wish.</p> ]]></description>
<pubDate>Fri, 21 Sep 2007 03:53:57 GMT</pubDate>
<guid>http://snipplr.com/view/3754/image-replace-for-buttons/</guid>
</item>
<item>
<title>(PHP) Regular expressions filename replace - andyhartleeds</title>
<link>http://snipplr.com/view/3670/regular-expressions-filename-replace/</link>
<description><![CDATA[ <p>Strip out non-alphanumeric characters. Very useful for use with filenames.</p> ]]></description>
<pubDate>Wed, 12 Sep 2007 05:50:28 GMT</pubDate>
<guid>http://snipplr.com/view/3670/regular-expressions-filename-replace/</guid>
</item>
<item>
<title>(ActionScript) str_replace - wintondeshong</title>
<link>http://snipplr.com/view/3369/strreplace/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 24 Jul 2007 10:41:11 GMT</pubDate>
<guid>http://snipplr.com/view/3369/strreplace/</guid>
</item>
<item>
<title>(ActionScript) Search and replace text in a string - Bonky</title>
<link>http://snipplr.com/view/3278/search-and-replace-text-in-a-string/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 12 Jul 2007 14:03:48 GMT</pubDate>
<guid>http://snipplr.com/view/3278/search-and-replace-text-in-a-string/</guid>
</item>
<item>
<title>(JavaScript) String.replaceAll method implementation - alvaroisorna</title>
<link>http://snipplr.com/view/3141/stringreplaceall-method-implementation/</link>
<description><![CDATA[ <p>This snippet adds a replaceAll method to the String prototype, so that you can call it later like this:
"test string".replaceAll("s", "-"); // returns "te-t -tring"</p> ]]></description>
<pubDate>Wed, 04 Jul 2007 01:11:24 GMT</pubDate>
<guid>http://snipplr.com/view/3141/stringreplaceall-method-implementation/</guid>
</item>
</channel>
</rss>