I tried this expression to /\b(word\w*)\b/icompare a wordwith a list of other words to find duplicates. I used preg_math_all()and it worked fine. I wanted to do the same, but this time to check the words retrieved from the mysql database. This is what I wrote
SELECT * FROM table WHERE word = /\b(word\w*)\b/i
it did not work.
source
share