Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6794105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:10:54+00:00 2026-05-26T18:10:54+00:00

I have the following statement in Rails 3 using an SQLite3 database: word =

  • 0

I have the following statement in Rails 3 using an SQLite3 database:

word = 'Hello'
word_entry = Word.where("name REGEXP :word", {:word => "[[:<:]]#{word}[[:>:]]"})

However, when running this under SQLite3, I keep getting:

SQLite3::SQLException: no such function: REGEXP

I read in the SQLite3 documentation that it does indeed support the REGEXP function.
In my gemfile, I have the line

gem 'sqlite3'

And my database config file looks like this:

development:
  adapter: sqlite3
  database: db/development.sqlite3
  pool: 5
  timeout: 5000

Any ideas what’s going on?

RESOLUTION:
I ended up finding this solution. Unfortunately, it doesn’t work for Rails 3.
So to use regular expressions I ended up switching to MYSQL instead of SQLite3.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:10:55+00:00Added an answer on May 26, 2026 at 6:10 pm

    I ran into the same issue. I took the code used in the resolution, ported it to work with Rails 3+ and made a gem for easier use. I hope this helps.

    https://github.com/sei-mi/sqlite3_ar_regexp

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following LINQ statement and I want to rewrite it using extension methods.
I have the following SQL-statement: SELECT DISTINCT name FROM log WHERE NOT name =
I have the following statement in my code: if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) but
I have the following statement: printf(name: %s\targs: %s\tvalue %d\tarraysize %d\n, sp->name, sp->args, sp->value, sp->arraysize);
In my Apache configuration, I have the following statement: RewriteRule ^/classic(.*) /$1 [nc,l] This
Framework: Rails 2.3.8 Database; PostgreSQL I currently have the following SQL statements (generated by
This might be simple but I'm starting out with rails. I have the following
I am using Rails 3 beta 4. I have the following models: class Player
I have the following statement: someList = dc.ExecuteQuery<MyCustomType>(@Select Id As ProductId, Name From ivProduct).ToList();
I have the following statement: btnApply.Attributes.Add(onclick, alert('Must be a member to Use this Tool'));

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.