From: Tim Pope Date: Sun, 25 Jul 2004 00:06:41 +0000 (+0000) Subject: Added cvsfilter.module X-Git-Url: http://git.tpope.net/?p=tpope-extra.git;a=commitdiff_plain;h=23eb137b54db28e622d70ec9b451c75ef752b047 Added cvsfilter.module --- diff --git a/drupal/modules/cvsfilter.module b/drupal/modules/cvsfilter.module new file mode 100644 index 0000000..84f5127 --- /dev/null +++ b/drupal/modules/cvsfilter.module @@ -0,0 +1,33 @@ +/i", '', $text); + $text = preg_replace("//i", '', $text); +// $text = preg_replace("<([ \n\r\t\(])([A-Za-z0-9._-]+@[A-Za-z0-9._-]+\.[A-Za-z]{2,4})([.,]?)(?=[ \n\r\t\)])>i", '\1\2\3', $text); +// $text = preg_replace("<([ \n\r\t\(])(www\.[a-zA-Z0-9@:%_~#?&=.,/;-]*[a-zA-Z0-9@:%_~#\&=/;-])([.,?]?)(?=[ \n\r\t\)])>i", '\1\2\3', $text); + //$text = substr($text, 1, -1); + return $text; + default: + return $text; + } + return $text; +} + + +?>