The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
|||
|
|||
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:
|
#3
|
||||
|
||||
I figured it out after another three hours of smashing - but thanks. I'll be using the eregi function.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|