Regex search and replace on all rows in a table with Laravel 4's Fluent or Eloquent
问题 What's the best way to use Fluent or Eloquent to search for a pattern in a MySQL database and replace it? I've seen in the Laravel forums that you should be able to do a regex selection like so // Searching for the word "mypattern"... Page::where('words', 'regexp', DB::raw('/\bmypattern\b/'))->get(); But I've tried this method and it doesn't seem to select the rows I'm after. In any case, actually don't want to JUST select-- I'd like to actually do a search and replace with regex . What's the