![]() |
EXTREME Regular Expression Fustration
This is pissing me the Hell off.
PHP Code:
http://www.jayallen.org/comment_spam/blacklist.txt The explode statement works, breaking that list into a line by line array. The first if statement works, lopping off the comment text. The preg_match isn't working. Neither will ereg, eregi, strstr or stristr. In fact, NOTHING IS WORKING!!! Even when the post is an EXACTLY COPIED LINE from the blacklist a if($post['message'] == $spam) statement DOESN'T WORK. I'm about to punch a hole in my laptop monitor here. Help. |
Your pattern should AFAIK (i really hate those preg functions ;)) be something like "/....../", i don't see the / delimiter in your example.
So i would say try: PHP Code:
|
I figured it out after another three hours of smashing - but thanks. I'll be using the eregi function.
|
All times are GMT. The time now is 07:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|