yumousan499
New Member
Ok, here again.I'll promise to study deeply the regular expression soon Language: PhPProblem:Match if some badword exist inside a string and do something.The word must be not included inside a "greater word". I mean if i'll search for "rob" (sorry Rob, i'm not thinking you're a badword), the word "problem have to pass without check.I'd googled around but found nothing good for me. So, I thought something like this:If i match the word with after and before any character of the following:
- . , ; : ! ? ( ) + - [whitespace]