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

  • SEARCH
  • Home
  • 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 995977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:48:24+00:00 2026-05-16T06:48:24+00:00

It does not seem possible to use REGEXP in a SQLite query in Android.

  • 0

It does not seem possible to use REGEXP in a SQLite query in Android. If it is possible, please point me in the right direction.

Is there a way to use a LIKE condition to query for an expression at the beginning of any word in the result?

Example:


Entries:
1. Minimum
2. Aluminum
3. Last Minute

Query:
“min”

Desired Result
(1) Minimum
(3) Last Minute

NOT
(2) Aluminum


This is basically my current code, which would return (2)Aluminum:

public Cursor search(String query) {
    return mDb.query(TABLE, COLUMNS, KEY_NAME +" like ?", new String[] { "%"+query+"%" }, null, null, null);
}

Any help will be greatly appreciated!

  • 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-16T06:48:25+00:00Added an answer on May 16, 2026 at 6:48 am

    It’s somewhat of a hack, but…

    foo LIKE 'bar%' OR foo LIKE '% bar%'
    

    might work for your needs (finding “bar” at the beginning of a word in “foo”). If you also want punctuation to serve as word delimiters, you’d have to add OR clauses for that as well (hence why it’s a hack).

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

Sidebar

Ask A Question

Stats

  • Questions 489k
  • Answers 489k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer To answer my question, I don't currently see an easy… May 16, 2026 at 8:56 am
  • Editorial Team
    Editorial Team added an answer Comments are liars! The problem with comments is that you… May 16, 2026 at 8:56 am
  • Editorial Team
    Editorial Team added an answer After some searching here's a tutorial that shows how to… May 16, 2026 at 8:56 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Although it does not seem possible, I wanted to put this out there to
Using Protobuf-Net, I see that it does not seem possible to deserialize a class
I'm not sure it's possible or not, but one of the things I find
I'm trying to use a RegularexpressionValidator to match an IP address (with possible wildcards)
situation We use migrations to update the database schema and configuration files for all
I'm working on Rhino (Mirth), and I've got to process / parse an XML
I am working on a web site with several other developers and we have
I have a couple of classes that I have created for my web project
I simply need to add floatArray1 to floatArray2 storing the result in floatArray2.. no
I have a SQL table readings something like: id int client_id int device_id int

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.