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 4550494
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:30:13+00:00 2026-05-21T16:30:13+00:00

i have project in ASP.NET MVC 3 and a mysql database that contains a

  • 0

i have project in ASP.NET MVC 3 and a mysql database that contains a table of string values for phone numbers (this phone numbers can be stored as 123 456-789 or 12345 6789 or 123456789 or any ways the user enter his number) and other table with a keywords data for that users.
The thing is that i have a search that will find in the keywords table (fulltext table) for the users, but i’m writing a method that search in the phone table if the search query matches against certain regular expression.
I have 2 questions:
– How could be that regular expression from the C# code side that tells what method to execute (SearchByKeyword or SearchByNumber)?
– Using the same regular expression i think, i must do the mysql query to search in the phones table… how can i do it?

I hope i have explained well and sorry if my english is a little bit bad.

  • 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-21T16:30:14+00:00Added an answer on May 21, 2026 at 4:30 pm

    It’s best when you capture the data to standardise the format it is saved in, IE:

    111-111-1-111-11
    1111-1111-1111
    111111111111
    1-1-1-1-1-1-1-1-1-1-1-1
    

    All will save as

    111111111111
    

    You can then do a simple LIKE query:

    SELECT * FROM tblNumbers WHERE number LIKE '%111%'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my ASP.NET MVC application, I have a project that contains all the business
I have an ASP.NET MVC project with a form. In the Action method that
I have an ASP.NET MVC project and I have a single action that accepts
We have an ASP.Net MVC project that will start with a single web server
Im currently trying to refactor a project(asp.net mvc) that doesnt have any separation at
I have a question I have a project asp.net mvc which is developed in
i need to have one project on asp.net mvc 1 but i want to
I have a Silverlight project (with ASP.net MVC web project) Suddenly, when I press
I am in the start up of a project using ASP.NET MVC and have
In our ASP.NET MVC project we have a Strings.resx file and the accompanying autogenerated

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.