From 23eb137b54db28e622d70ec9b451c75ef752b047 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 25 Jul 2004 00:06:41 +0000 Subject: [PATCH] Added cvsfilter.module --- drupal/modules/cvsfilter.module | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 drupal/modules/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; +} + + +?> -- 2.30.2