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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:00:58+00:00 2026-06-15T05:00:58+00:00

I can filter data from the Web-Application itself, but isn’t there a way to

  • 0

I can filter data from the Web-Application itself, but isn’t there a way to handle this from the root?

For Example, filtering a telephone number: +(12)345 678 91 /011

With a Regular Expression through the Web-Application, which I am currently doing:

bool validPhoneNumber = Common.IsValidTelephoneNumber(this.PhoneNumber);

//Insert Regular Expression
Regex regex = new Regex(@"^((\((\+|00){3}\)|(\()?\d{3}()?|)\d{10})$")

string number = this.PhoneNumber;

// Replace unwanted Characters
number.Replace(" ", "");
number.Replace("-", "");
number.Replace("(", "");
number.Replace(")", "");
number.Replace(":", "");

Match match  = regex.Match(number);

PhoneNumber (Contact)
char[] phonenumber = this.phoneNumber.ToCharArray();
StringBuilder builder = new StringBuilder(10);
for (int i = 0; i < phonenumber.Length; i++)
{
    if (phonenumber[i] >= '0' && phonenumber[i] <= '9')
    {
        builder.Append(phonenumber[i]);
    }
}
phoneNumber = builder.ToString().Substring(0, Math.Min(10, builder.Length));

//OUTPUT: +1234567891

What I would like to do is Collect Data and then Update it;

using (test.Database.OleDB db = new OleDB(OleDBConn)) { 
    db.Sql = 
        "UPDATE [Contact] SET ([MobileNumber]) VALUES " + "(@mobileNumber)" +
        "WHERE [Contact_ID] = @contactId";

    db.SetSqlParam("mobileNumber", MobileNumber);

    db.Handle.ExecuteNonQuery(); // Update the Record 
}
  • 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-06-15T05:00:59+00:00Added an answer on June 15, 2026 at 5:00 am

    I have came to the conclusion there is no way to edit the data earlier than:

    bool validPhoneNumber = Common.IsValidTelephoneNumber(this.PhoneNumber);
    
    //Insert Regular Expression
    Regex regex = new Regex(@"^((\((\+|00){3}\)|(\()?\d{3}()?|)\d{10})$")
    
    string number = this.PhoneNumber;
    
    // Replace unwanted Characters
    number.Replace(" ", "");
    number.Replace("-", "");
    number.Replace("(", "");
    number.Replace(")", "");
    number.Replace(":", "");
    
    Match match  = regex.Match(number);
    
    PhoneNumber (Contact)
    char[] phonenumber = this.phoneNumber.ToCharArray();
    StringBuilder builder = new StringBuilder(10);
    for (int i = 0; i < phonenumber.Length; i++)
    {
        if (phonenumber[i] >= '0' && phonenumber[i] <= '9')
        {
            builder.Append(phonenumber[i]);
        }
    }
    phoneNumber = builder.ToString().Substring(0, Math.Min(10, builder.Length));
    

    So I decided to change the data manually.

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

Sidebar

Related Questions

I'm trying to make a cgridview that can filter data from relations table. This
In my web application there is a process that queries data from all over
I have a web application with lots of data, and a search/filter function with
I have a ListView and a EditText . How can I filter ListView data
How can i use NSSearchField for filter data that i load into program with
I have a set of data with over 1000 entries. I can filter these
I have an application that can filter a datagridview based on date using a
I'm developing a web application based on ASP.NET MVC. There are a large database.
I know that for opening android application from a link inside a web page
I am designing a web application that retrieves records from a database according to

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.