PHP preg_replace question
ok...let's see if I can explain this properly...
I have a string. It needs to:
1) Be split into an array of single words (check)
2) Be stripped of "noisewords" (here's the problem)
3) Be inserted into a "keywords" table in a MySQL database.
Number 2 works...just too well. I have the word "the" in my noisewords array...the problem is, it not only replaces the word the, but also any time that "the" is used in another word. So "another" would become "anor". Actually, since I also have "a" and "no" specified as noisewords, it becomes "r".
Any thoughts?
MPEDrummer
__________________
My sig can beat up your honor student.
|