<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 19:32:11 +0000</lastBuildDate>
    <item>
      <title>(PHP) Censor bad words with regexp - oso96_2000</title>
      <link>https://snipplr.com/view/6332/censor-bad-words-with-regexp</link>
      <description>&lt;p&gt;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:\r\n\r\n$texto = \'fuck off!\';\r\nfiltrado($texto); returns true since a bad word has been found on the text\r\nfiltrado($texto, \'[censored]\'); //returns [censored] off!\r\n\r\nAnd because regexp, this will work with something like \"fck off!\". You can see a more detailed example here:\r\nhttp://www.otaku-anime.com/varios/filtro.php -- Example\r\nhttp://www.otaku-anime.com/varios/filtro.php?source -- Source code of the example&lt;/p&gt;</description>
      <pubDate>Mon, 19 May 2008 16:39:57 UTC</pubDate>
      <guid>https://snipplr.com/view/6332/censor-bad-words-with-regexp</guid>
    </item>
  </channel>
</rss>
