I am using the twitter API to fill my database with tweets. I now want to be able to search for words in the tweets. I have realized that this is not as simple as using LIKE because LIKE will do the following:
If searching for 'pan' like would return tweets that have words that contain that string such as 'companion'.
I have decided I need to use regular expressions to solve this. Basically I want to be able to find only full words (not if they are contained in other words like the above) in the tweets I am searching. So how would I be able to do this?
The following is what I have so far:
SELECT tweet_id, text FROM tweets WHERE text REGEXP ''
I am just unsure about what the regular expression should contain.