Thread: Reg Ex help!
View Single Post
Old 04-06-2011, 02:24 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,109
Quote:
Originally Posted by Kiopa_Matt View Post
Ohhh, you're doing a search engine. In that case, regex isn't exactly what you're looking for, and it's a little more complex than that. You have to index the keywords / tags / phrases within the database, then upon a user searching, split up the phrase as needed, and search the database for any (partially) matching results. Then write a relevancy algorithm, etc.

You're best off either just using an existing free PHP search engine out there, or having a developer take care of this for you.
There are many ways to do a serach engine type search of a database other than that. Depends on what your data looks like as to which methodology works best.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote