FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » function index_text
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
function index_text [message #13487] Tue, 14 October 2003 14:06 Go to previous message
ngockhoi is currently offline  ngockhoi   France
Messages: 15
Registered: July 2003
Location: Paris
Karma:
Junior Member
I must have the warning
Delimiter must not be alphanumeric or backslash

this is not a bug, but supposed to be a feature of php i think.
the delimiters
into the regexp. eg. "^$" becomes "/^$/"

function index_text($subj, $body, $msg_id)
....

$cs = array('/\W/', '/!\s+!/');
$cd = array(' ', ' ');

reverse_fmt($subj);
$subj = trim(preg_replace($cs, $cd, strip_tags(strtolower($subj))));
reverse_fmt($body);
$body = trim(preg_replace($cs, $cd, strip_tags(strtolower($body))));


Best regards,

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Forum Consistency Problem?
Next Topic: v2.5.3rc3 sluggish or doesn't respond
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 20:46:54 GMT 2024

Total time taken to generate the page: 0.04853 seconds