Buy Questpond's video subscriptions on huge discount.
DotNetFunda.com
Online: 4048
  • Home
  • Articles
  • Interviews
  • Forums
    • For Beginners
    • Popular Questions
    • ITIL Career Advice
    • PMP Career Advice
    Career Advices
  • Codes
  • Videos
    • ASP.NET
    • ASP.NET MVC
    • Android Intel XDK
    • Sql Server
    • AngularJS
    • Bootstrap
    • Backbone.JS
    • MongoDB
    • LESS (CSS)
    • jQuery
    • WPF
    • WWF
    • SSIS
    • LightSwitch
    Tutorials
  • News
  • Search
  • ASP.NET MVC | Be Interview Ready | Top Performers | DNF MVP | Top Posts | Winners | Subscribe | Catalogs
Welcome Guest ! Register Login
Home > Community >
Community Categories >
  • Articles
  • Blogs
  • Forums
  • News and Events
Post
  • Post
  • Post An Article
  • Post An Interview Question
  • Post A Forum Post
  • Post A Career Advice Question
  • Post A Video
  • Post A Code
  • Post A Job
  • Post A Product Catalog
  • Post An Interview Experience
  • Post A Bookmark
  • Post A News

Regular expression to split number

Author: Venkat Ganesh | Posted on: 7/22/2010 12:19:59 PM | Views : 311
Search Resources | Community Home 



I am splitting the phone number entered into two parts using regular expressions below

(^\d{3}) - last 7 digits

\d{7}\b - first 3 digits

This works fine if entered value is 1234567890 or 123-456-7890

and fails if value entered is 123 456 7890 (with spaces) or 123.456.7890

how to modify above expressions to trim (spaces and .)?

Thanks
...

Go to the complete details ...

Bookmark It
More .NET Resources Posts
  • atou rename database when detach /attach
  • Attach Database with Rename(Attash as)
  • Are Microsoft® SQL Server® 2014 Feature Pack components compatible with SQL Server 2012
  • [DTM_10004] The DTM process terminated unexpectedly.
  • create database permission denied in database master
  • Microsoft Sql Server 2014 Express and AdventureWorks 2014 Script
  • SQL Server Express - Installation Sequence
  • Dumb question - SQL Server Express 2014 - where is my "SQL" interface?
  • Cannot Generate SSPI Context
  • SQL Express usage
  • Cannot Export from Sql Server Express 2014 to Access 2016
  • Managing SQL 2014 Standard
  • SQL 2014 Express and WSUS on Windows 2012 R2
  • sql server Migration error
  • Install SQL Server 2014 Express in Windows 10
  • Suddenly lost ability for client connections to SQL Server Express
  • MS SQL Server 2014 fails creating a backup
  • Linked server taking time
  • Connection pool exceeded error
  • Not able to install/Uninstall SQL Server Express 2014
Winners
Winners & PrizesWin Prizes
Ads
Social
  • YouTube YouTube/DNFVideo
  • Facebook Facebook/DotNetFunda
  • Twitter Twitter/DotNetFunda
  • LinkedIn LinkedIn/In/DotNetFunda
  • Google Plus.Google.Com
Like us on Facebook
Top Article Authors
Fri, 06-Nov-2026 Authors
All Time Authors
rajnilari2015
116425
SheoNarayan
108020
vishalneeraj-24503
106400

Latest members | More ...


(Statistics delayed by 5 minutes)
Advertisements
  • About Us
  • Contact Us
  • The Team
  • Testimonials
  • Advertise
  • Share knowledge
  • Privacy Policy
  • Terms of Use
  • Search Members
  • Catalogs
  • Hosting Partner
  • Go Top
General Notice: If you find plagiarised (copied) content on this page, please let us know original source along with your correct email id (to communicate) for action.
© DotNetFunda.Com. All Rights Reserved. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 11/6/2026 3:01:25 AM 16102020