Originally Posted by
jMerliN
Well that answer really is basically wrong. The cases where that approach would be sufficient are handily solved by database indexing, so there's no code needed except to construct a query. And I wouldn't advise using a regular expression condition in a SQL query as it's not possible to optimize an index for general regular expression matching, so it'll devolve into a full table scan and be just as slow as looping over a large array. This typically matters because nobody wants to "search" if there are only 5 items in the database.
I've been busy working and other nonsense. Cash monies.