Could someone lead me on finding a regular expression that blocks a comma separated list of Spam words I already have?
The regular expression needs to match a string with the spam word list I already have.
Not that it matters, but I am using PHP.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
The
\bwill match between a word character and a non-word character (so that the expression won’t match if the words appear as part of a longer word).