• Home
  • Info
Search

Web development and technologies | egeek

ASP.NET, C#, Azure, SQL, Server, Umbraco, Sitecore, Git and other stuff I find useful

Regex numbers and spaces

By Paul on December 4, 2013Leave a Reply

This regex can be used to only allow numbers and spaces, may it be in a phone number or any other place where only numbers or spaces should be allowed.

[code]
^[\s\d]*$
[/code]

Share this:

  • Twitter
  • Facebook
  • Email

Related

Posted in: Development Hacks and stuffTagged: regex

Post navigation

Previous
Check if member exist Umbraco C#
November 29, 2013
Next
Umbraco Contour XSLT transformed mail with link
December 16, 2013

Subscribe to egeek.io

Subscribe to egeek.io and receive notifications of new blog posts by email

Recent posts

  • Disable overwrite in Sublime Text June 20, 2016
  • Umbraco Codegarden 2016 June 15, 2016
  • ASP.NET Core and .NET Core Overview June 9, 2016
  • Mobile website speed test tools June 4, 2016
  • Change domain name WordPress, the SEO friendly way June 4, 2016

Categories

  • CMS
    • DynamicWeb
    • Sitecore
    • Umbraco
    • Wordpress
  • Desktop
    • Mac
    • Windows
  • Development
    • Git
    • Hacks and stuff
    • JavaScript
    • Microsoft
  • Misc
  • SEO
  • Server
    • Apache
    • IIS
    • MySQL
    • Node.js
    • SQL Server
    • Windows
    • Windows Azure

Tags

.NET.CORE Active Directory analytics Apache Apple ASP.NET ASP.NET CORE Azure C# DNS Git IIS Lucene mysql Node.js OS X PowerShell regex Ruby on Rails search console SEO Solr SQL SQL Server terminal Tomcat Url Rewrite Visual Studio wcf Windows Windows Azure Windows Forms Windows Server Wordpress
TwitterFacebookGoogle+LinkedInGitHub
COPYRIGHT © 2016 EGEEK.DK. ALL RIGHTS RESERVED. Back to the top
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.