I have the following statement in Rails 3 using an SQLite3 database:
word = \'Hello\' word_entry = Word.where(\"name REGEXP :word\", {:word => \"[[:<:]
You may be intested in the sqlite3-pcre package, which implements REGEXP for SQLite.
sqlite3-pcre
REGEXP
See this comment on a similar issue.